Tim Northover | d6a729b | 2014-01-06 14:28:05 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -O0 -verify-machineinstrs -mtriple=thumbv7-apple-darwin |
| 2 | ; RUN: llc < %s -O0 -verify-machineinstrs -mtriple=armv7-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 | } |