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 | 423be627e6a108b72770426e16cb988b6167c3cb (patch) | |
tree | a488c2f63001c7f8e981f39eaac0ba00b0129df1 /test/CodeGen/X86 | |
parent | ccef580583ad131fa42e5063536509de8158b0ba (diff) | |
download | external_llvm-423be627e6a108b72770426e16cb988b6167c3cb.zip external_llvm-423be627e6a108b72770426e16cb988b6167c3cb.tar.gz external_llvm-423be627e6a108b72770426e16cb988b6167c3cb.tar.bz2 |
Fix a miscompilation from Dan's recent apintification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47128 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r-- | test/CodeGen/X86/2008-02-14-BitMiscompile.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-02-14-BitMiscompile.ll b/test/CodeGen/X86/2008-02-14-BitMiscompile.ll new file mode 100644 index 0000000..5bf8456 --- /dev/null +++ b/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 +} + |