2013-05-15 00:26:38 +08:00
|
|
|
; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort -mtriple=thumbv7-apple-darwin
|
2013-06-14 10:49:43 +08:00
|
|
|
; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort -mtriple=thumbv7-linux-gnueabi
|
2011-05-28 02:02:04 +08:00
|
|
|
; rdar://9515076
|
|
|
|
; (Make sure this doesn't crash.)
|
|
|
|
|
|
|
|
define i32 @test(i32 %i) {
|
2011-05-28 02:14:28 +08:00
|
|
|
%t = trunc i32 %i to i4
|
2011-05-28 02:02:04 +08:00
|
|
|
%r = sext i4 %t to i32
|
|
|
|
ret i32 %r
|
|
|
|
}
|