diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-14 18:48:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-14 18:48:56 +0000 |
commit | 558a3ba17f324dbf12f090c58bdccbf859b02354 (patch) | |
tree | 60ec50560ff41c85d65d13bf663f551ca3e90341 /llvm/test/CodeGen/X86/2008-02-14-BitMiscompile.ll | |
parent | 4b3210a3ec210f99c1585500ed40d505f7d1b36c (diff) | |
download | bcm5719-llvm-558a3ba17f324dbf12f090c58bdccbf859b02354.tar.gz bcm5719-llvm-558a3ba17f324dbf12f090c58bdccbf859b02354.zip |
Fix a miscompilation from Dan's recent apintification.
llvm-svn: 47128
Diffstat (limited to 'llvm/test/CodeGen/X86/2008-02-14-BitMiscompile.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/2008-02-14-BitMiscompile.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/2008-02-14-BitMiscompile.ll b/llvm/test/CodeGen/X86/2008-02-14-BitMiscompile.ll new file mode 100644 index 00000000000..5bf84560a37 --- /dev/null +++ b/llvm/test/CodeGen/X86/2008-02-14-BitMiscompile.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | llc -march=x86 | grep and +define i32 @test(i1 %A) { + %B = zext i1 %A to i32 ; <i32> [#uses=1] + %C = sub i32 0, %B ; <i32> [#uses=1] + %D = and i32 %C, 255 ; <i32> [#uses=1] + ret i32 %D +} + |