diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-01-19 18:08:33 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-01-19 18:08:33 +0000 |
commit | 1999ff1d810b13425fcb80ac8bbccdff4c3a7cf8 (patch) | |
tree | d841951ef450e407ac8fac20ccaf70dec1c479a5 /test/ExecutionEngine | |
parent | 4bd47877859b19c7a12cd10eff03533b329740e1 (diff) |
Port this test from dejagnu to unit testing.
The way this worked before was to test APInt by running
"lli -force-interpreter=true" knowing the lli uses APInt under the hood to
store its values. Now, we test APInt directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62514 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ExecutionEngine')
-rw-r--r-- | test/ExecutionEngine/2007-05-12-APInt-Shl.ll | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/test/ExecutionEngine/2007-05-12-APInt-Shl.ll b/test/ExecutionEngine/2007-05-12-APInt-Shl.ll deleted file mode 100644 index cbea4076ea..0000000000 --- a/test/ExecutionEngine/2007-05-12-APInt-Shl.ll +++ /dev/null @@ -1,30 +0,0 @@ -; RUN: llvm-as %s -f -o %t.bc -; RUN: lli -force-interpreter=true %t.bc | tee %t.out | grep 10 - -; Test that APInt shift left works when bitwidth > 64 and shiftamt == 0 - -declare i32 @putchar(i32) - -define void @putBit(i65 %x, i65 %bitnum) { - %tmp1 = shl i65 1, %bitnum - %tmp2 = and i65 %x, %tmp1 - %cond = icmp ne i65 %tmp2, 0 - br i1 %cond, label %cond_true, label %cond_false - -cond_true: - call i32 @putchar(i32 49) - br label %cond_next - -cond_false: - call i32 @putchar(i32 48) - br label %cond_next - -cond_next: - ret void -} - -define i32 @main() { - call void @putBit(i65 1, i65 0) - call void @putBit(i65 0, i65 0) - ret i32 0 -} |