[llvm-commits] CVS: llvm/test/Assembler/2007-03-19-NegValue.ll

Reid Spencer reid at x10sys.com
Mon Mar 19 13:35:43 PDT 2007



Changes in directory llvm/test/Assembler:

2007-03-19-NegValue.ll added (r1.1)
---
Log message:

Test case noticed by Sheng that fails because negative values that are 
greater than 64-bits don't have the sign bits extended on construction of
the APInt.


---
Diffs of the changes:  (+7 -0)

 2007-03-19-NegValue.ll |    7 +++++++
 1 files changed, 7 insertions(+)


Index: llvm/test/Assembler/2007-03-19-NegValue.ll
diff -c /dev/null llvm/test/Assembler/2007-03-19-NegValue.ll:1.1
*** /dev/null	Mon Mar 19 15:35:36 2007
--- llvm/test/Assembler/2007-03-19-NegValue.ll	Mon Mar 19 15:35:26 2007
***************
*** 0 ****
--- 1,7 ----
+ ; Test whether negative values > 64 bits retain their negativeness.
+ ; RUN: llvm-as < %s | llvm-dis | grep 'add i65.*, -1'
+ 
+ define i65 @testConsts(i65 %N) {
+   %a = add i65 %N, -1
+   ret i65 %a
+ }






More information about the llvm-commits mailing list