mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
c559ba7251
of the abi we should be using. For targets that don't use the option there's no change, otherwise this allows external users to set the ABI via string and avoid some of the -backend-option pain in clang. Use this option to move the ABI for the ARM port from the Subtarget to the TargetMachine and update the testcases accordingly since it's no longer valid to set via -mattr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224492 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
519 B
LLVM
19 lines
519 B
LLVM
; RUN: llc -mtriple=thumbv7-unknown-unknown -target-abi apcs < %s | FileCheck %s
|
|
; Check assembly printing of odd constants.
|
|
|
|
; CHECK: bigCst:
|
|
; CHECK-NEXT: .long 1694510592
|
|
; CHECK-NEXT: .long 2960197
|
|
; CHECK-NEXT: .long 26220
|
|
; CHECK-NEXT: .size bigCst, 12
|
|
|
|
@bigCst = internal constant i82 483673642326615442599424
|
|
|
|
define void @accessBig(i64* %storage) {
|
|
%addr = bitcast i64* %storage to i82*
|
|
%bigLoadedCst = load volatile i82* @bigCst
|
|
%tmp = add i82 %bigLoadedCst, 1
|
|
store i82 %tmp, i82* %addr
|
|
ret void
|
|
}
|