mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-04 10:30:01 +00:00
Add testcase for r238503.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238515 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5f50442d79
commit
47b5a3cbea
14
test/CodeGen/X86/pr23664.ll
Normal file
14
test/CodeGen/X86/pr23664.ll
Normal file
@ -0,0 +1,14 @@
|
||||
; RUN: llc -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
|
||||
|
||||
define i2 @f(i32 %arg) {
|
||||
%trunc = trunc i32 %arg to i1
|
||||
%sext = sext i1 %trunc to i2
|
||||
%or = or i2 %sext, 1
|
||||
ret i2 %or
|
||||
|
||||
; CHECK-LABEL: f:
|
||||
; CHECK: addb %dil, %dil
|
||||
; CHECK-NEXT: orb $1, %dil
|
||||
; CHECK-NEXT: movb %dil, %al
|
||||
; CHECK-NEXT: retq
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user