[llvm-commits] CVS: llvm/test/Regression/Assembler/2007-01-01-Cast-To-Bool.ll
Reid Spencer
reid at x10sys.com
Mon Jan 1 21:48:47 PST 2007
Changes in directory llvm/test/Regression/Assembler:
2007-01-01-Cast-To-Bool.ll added (r1.1)
---
Log message:
For PR1070: http://llvm.org/PR1070 :
Add a test case to ensure that llvm-upgrade retains correct semantics
for the previous definition of "cast to bool" which compared against null.
---
Diffs of the changes: (+5 -0)
2007-01-01-Cast-To-Bool.ll | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/test/Regression/Assembler/2007-01-01-Cast-To-Bool.ll
diff -c /dev/null llvm/test/Regression/Assembler/2007-01-01-Cast-To-Bool.ll:1.1
*** /dev/null Mon Jan 1 23:48:42 2007
--- llvm/test/Regression/Assembler/2007-01-01-Cast-To-Bool.ll Mon Jan 1 23:48:32 2007
***************
*** 0 ****
--- 1,5 ----
+ ; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | grep 'icmp ne'
+ bool %main(int %X) {
+ %res = cast bool true to bool
+ ret bool %res
+ }
More information about the llvm-commits
mailing list