mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 02:32:08 +00:00
284c931330
Missing braces on if meant we inserted both ARM and Thumb load for a litpool entry. This didn't end well. rdar://problem/15959157 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200752 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
354 B
LLVM
12 lines
354 B
LLVM
; RUN: llc -mtriple=thumbv7-apple-ios -O0 -o - %s | FileCheck %s
|
|
|
|
; We used to accidentally create both an ARM and a Thumb ldr here. It led to an
|
|
; assertion failure at the time, but could go all the way through to emission,
|
|
; hence the CHECK-NOT.
|
|
|
|
define i32 @test_thumb_ldrlit() minsize {
|
|
; CHECK: ldr r0, LCPI0_0
|
|
; CHECK-NOT: ldr
|
|
ret i32 12345678
|
|
}
|