Derek Schuff | bd7c6e5 | 2013-05-14 16:26:38 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort -mtriple=thumbv7-apple-darwin |
JF Bastien | 18db1f2 | 2013-06-14 02:49:43 +0000 | [diff] [blame] | 2 | ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort -mtriple=thumbv7-linux-gnueabi |
Eli Friedman | fe84bd6 | 2011-05-27 18:02:04 +0000 | [diff] [blame] | 3 | ; rdar://9515076 |
| 4 | ; (Make sure this doesn't crash.) |
| 5 | |
| 6 | define i32 @test(i32 %i) { |
Eli Friedman | 3a8d962 | 2011-05-27 18:14:28 +0000 | [diff] [blame] | 7 | %t = trunc i32 %i to i4 |
Eli Friedman | fe84bd6 | 2011-05-27 18:02:04 +0000 | [diff] [blame] | 8 | %r = sext i4 %t to i32 |
| 9 | ret i32 %r |
| 10 | } |