diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
commit | 009b1c42aa6266385f2c37e227516b24077e6dd7 (patch) | |
tree | 64ba909838c23261cace781ece27d106134ea451 /test/CodeGen/Generic/addc-fold2.ll |
Diffstat (limited to 'test/CodeGen/Generic/addc-fold2.ll')
-rw-r--r-- | test/CodeGen/Generic/addc-fold2.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/addc-fold2.ll b/test/CodeGen/Generic/addc-fold2.ll new file mode 100644 index 0000000000000..8f3cdd0793d4b --- /dev/null +++ b/test/CodeGen/Generic/addc-fold2.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | llc -march=x86 | grep add +; RUN: llvm-as < %s | llc -march=x86 | not grep adc + +define i64 @test(i64 %A, i32 %B) { + %tmp12 = zext i32 %B to i64 ; <i64> [#uses=1] + %tmp3 = shl i64 %tmp12, 32 ; <i64> [#uses=1] + %tmp5 = add i64 %tmp3, %A ; <i64> [#uses=1] + ret i64 %tmp5 +} + |