| Tim Northover | e42fb07 | 2014-02-04 10:38:46 +0000 | [diff] [blame] | 1 | ; RUN: llc -mtriple=thumbv7-apple-ios -O0 -o - %s | FileCheck %s |
| 2 | |
| 3 | ; We used to accidentally create both an ARM and a Thumb ldr here. It led to an |
| 4 | ; assertion failure at the time, but could go all the way through to emission, |
| 5 | ; hence the CHECK-NOT. |
| 6 | |
| 7 | define i32 @test_thumb_ldrlit() minsize { |
| Francis Visoiu Mistrih | 1c98701 | 2017-05-23 21:22:16 +0000 | [diff] [blame] | 8 | ; CHECK-LABEL: test_thumb_ldrlit: |
| Tim Northover | e42fb07 | 2014-02-04 10:38:46 +0000 | [diff] [blame] | 9 | ; CHECK: ldr r0, LCPI0_0 |
| 10 | ; CHECK-NOT: ldr |
| 11 | ret i32 12345678 |
| 12 | } |