Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/X86/neg_cmp.ll @ 33:e4204d083e25
LLVM 3.5
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 14:32:10 +0900 |
parents | 95c75e76d11b |
children | 803732b1fca8 |
line wrap: on
line source
; RUN: llc < %s -march=x86-64 | FileCheck %s ; rdar://11245199 ; PR12545 define void @f(i32 %x, i32 %y) nounwind uwtable ssp { entry: ; CHECK-LABEL: f: ; CHECK-NOT: neg ; CHECK: add %sub = sub i32 0, %y %cmp = icmp eq i32 %x, %sub br i1 %cmp, label %if.then, label %if.end if.then: ; preds = %entry tail call void @g() nounwind br label %if.end if.end: ; preds = %if.then, %entry ret void } declare void @g()