From 423be627e6a108b72770426e16cb988b6167c3cb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 14 Feb 2008 18:48:56 +0000 Subject: 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 --- test/CodeGen/X86/2008-02-14-BitMiscompile.ll | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/CodeGen/X86/2008-02-14-BitMiscompile.ll (limited to 'test') 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 ; [#uses=1] + %C = sub i32 0, %B ; [#uses=1] + %D = and i32 %C, 255 ; [#uses=1] + ret i32 %D +} + -- cgit v1.1