mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-24 09:29:42 +00:00
Essentially the same as the GEP change in r230786. A similar migration script can be used to update test cases, though a few more test case improvements/changes were required this time around: (r229269-r229278) import fileinput import sys import re pat = re.compile(r"((?:=|:|^)\s*load (?:atomic )?(?:volatile )?(.*?))(| addrspace\(\d+\) *)\*($| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$)") for line in sys.stdin: sys.stdout.write(re.sub(pat, r"\1, \2\3*\4", line)) Reviewers: rafael, dexonsmith, grosser Differential Revision: http://reviews.llvm.org/D7649 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230794 91177308-0d34-0410-b5e6-96231b3b80d8
38 lines
1.0 KiB
LLVM
38 lines
1.0 KiB
LLVM
; RUN: llc -mtriple=aarch64-none-linux-gnu -disable-fp-elim < %s | FileCheck %s
|
|
@var = global i32 0
|
|
|
|
declare void @bar()
|
|
|
|
define void @test_w29_reserved() {
|
|
; CHECK-LABEL: test_w29_reserved:
|
|
; CHECK: add x29, sp, #{{[0-9]+}}
|
|
|
|
%val1 = load volatile i32, i32* @var
|
|
%val2 = load volatile i32, i32* @var
|
|
%val3 = load volatile i32, i32* @var
|
|
%val4 = load volatile i32, i32* @var
|
|
%val5 = load volatile i32, i32* @var
|
|
%val6 = load volatile i32, i32* @var
|
|
%val7 = load volatile i32, i32* @var
|
|
%val8 = load volatile i32, i32* @var
|
|
%val9 = load volatile i32, i32* @var
|
|
|
|
; CHECK-NOT: ldr w29,
|
|
|
|
; Call to prevent fp-elim that occurs regardless in leaf functions.
|
|
call void @bar()
|
|
|
|
store volatile i32 %val1, i32* @var
|
|
store volatile i32 %val2, i32* @var
|
|
store volatile i32 %val3, i32* @var
|
|
store volatile i32 %val4, i32* @var
|
|
store volatile i32 %val5, i32* @var
|
|
store volatile i32 %val6, i32* @var
|
|
store volatile i32 %val7, i32* @var
|
|
store volatile i32 %val8, i32* @var
|
|
store volatile i32 %val9, i32* @var
|
|
|
|
ret void
|
|
; CHECK: ret
|
|
}
|