1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Add testcase for r238503.

llvm-svn: 238515
This commit is contained in:
David Majnemer 2015-05-28 22:12:27 +00:00
parent 711f4eb0a1
commit 9ea8945a54

View 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
}