mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
7c9c6ed761
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
25 lines
1.3 KiB
LLVM
25 lines
1.3 KiB
LLVM
; RUN: llc -mtriple=thumbv6m-eabi -verify-machineinstrs %s -o - | FileCheck %s
|
|
target datalayout = "e-m:e-p:32:32-i1:8:32-i8:8:32-i16:16:32-i64:64-v128:64:128-a:0:32-n32-S64"
|
|
target triple = "thumbv6m--linux-gnueabi"
|
|
|
|
; Function Attrs: nounwind optsize
|
|
define void @foo(i32* nocapture readonly %A) #0 {
|
|
entry:
|
|
; CHECK-LABEL: foo:
|
|
; CHECK: ldm r[[BASE:[0-9]]]!,
|
|
; CHECK-NEXT: mov r[[BASE]],
|
|
%0 = load i32, i32* %A, align 4
|
|
%arrayidx1 = getelementptr inbounds i32, i32* %A, i32 1
|
|
%1 = load i32, i32* %arrayidx1, align 4
|
|
%call = tail call i32 @bar(i32 %0, i32 %1, i32 %0, i32 %1) #2
|
|
%call2 = tail call i32 @bar(i32 %0, i32 %1, i32 %0, i32 %1) #2
|
|
ret void
|
|
}
|
|
|
|
; Function Attrs: optsize
|
|
declare i32 @bar(i32, i32, i32, i32) #1
|
|
|
|
attributes #0 = { nounwind optsize "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
|
|
attributes #1 = { optsize "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
|
|
attributes #2 = { nounwind optsize }
|