[llvm-commits] CVS: llvm/test/Programs/LLVMSource/2002-02-12-setuw-setsw.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Jul 1 12:58:02 PDT 2003
Changes in directory llvm/test/Programs/LLVMSource:
2002-02-12-setuw-setsw.ll added (r1.1)
---
Log message:
Moved test
---
Diffs of the changes:
Index: llvm/test/Programs/LLVMSource/2002-02-12-setuw-setsw.ll
diff -c /dev/null llvm/test/Programs/LLVMSource/2002-02-12-setuw-setsw.ll:1.1
*** /dev/null Tue Jul 1 12:57:20 2003
--- llvm/test/Programs/LLVMSource/2002-02-12-setuw-setsw.ll Tue Jul 1 12:57:10 2003
***************
*** 0 ****
--- 1,15 ----
+ ; The sparc back-end is generating set-unsigned (setuw) for -2, when it
+ ; should be using setsw.
+
+ implementation
+
+ int %main(int %argc, sbyte * * %argv) {
+ %T1 = cast int 2 to uint
+ %tmp = add uint %T1, 4294967294 ; == -2
+ %cond = seteq uint %tmp, 0
+ br bool %cond, label %Ok, label %Fail
+ Ok:
+ ret int 0
+ Fail:
+ ret int 1
+ }
More information about the llvm-commits
mailing list