[llvm-commits] CVS: llvm/test/Regression/CFrontend/2006-01-16-BitCountIntrinsicsUnsigned.c
Chris Lattner
lattner at cs.uiuc.edu
Mon Jan 16 22:24:13 PST 2006
Changes in directory llvm/test/Regression/CFrontend:
2006-01-16-BitCountIntrinsicsUnsigned.c added (r1.1)
---
Log message:
Ensure that the CFE always emits intrinsics in their unsigned version, not with signed operands
---
Diffs of the changes: (+9 -0)
2006-01-16-BitCountIntrinsicsUnsigned.c | 9 +++++++++
1 files changed, 9 insertions(+)
Index: llvm/test/Regression/CFrontend/2006-01-16-BitCountIntrinsicsUnsigned.c
diff -c /dev/null llvm/test/Regression/CFrontend/2006-01-16-BitCountIntrinsicsUnsigned.c:1.1
*** /dev/null Tue Jan 17 00:24:11 2006
--- llvm/test/Regression/CFrontend/2006-01-16-BitCountIntrinsicsUnsigned.c Tue Jan 17 00:24:01 2006
***************
*** 0 ****
--- 1,9 ----
+ // RUN: %llvmgcc -S %s -o - | grep 'llvm.ctlz.i32(uint' &&
+ // RUN: %llvmgcc -S %s -o - | not grep 'llvm.ctlz.i32(int'
+
+ unsigned t2(unsigned X) {
+ return __builtin_clz(X);
+ }
+ int t1(int X) {
+ return __builtin_clz(X);
+ }
More information about the llvm-commits
mailing list