[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/2005-05-13-SDivTwo.c
Chris Lattner
lattner at cs.uiuc.edu
Fri May 13 14:40:56 PDT 2005
Changes in directory llvm-test/SingleSource/UnitTests:
2005-05-13-SDivTwo.c added (r1.1)
---
Log message:
new testcase that the x86 be fails
---
Diffs of the changes: (+8 -0)
2005-05-13-SDivTwo.c | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm-test/SingleSource/UnitTests/2005-05-13-SDivTwo.c
diff -c /dev/null llvm-test/SingleSource/UnitTests/2005-05-13-SDivTwo.c:1.1
*** /dev/null Fri May 13 16:40:50 2005
--- llvm-test/SingleSource/UnitTests/2005-05-13-SDivTwo.c Fri May 13 16:40:40 2005
***************
*** 0 ****
--- 1,8 ----
+ // Check that signed divide by a power of two works for small types
+ #include <stdio.h>
+ int main() {
+ int i;
+ for (i = 0; i != 258; ++i) {
+ printf("%d\n", ((signed char)i) / (signed char)2);
+ }
+ }
More information about the llvm-commits
mailing list