mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 07:29:55 +00:00
This was done with the following sed invocation to catch label lines demarking function boundaries: sed -i '' "s/^;\( *\)\([A-Z0-9_]*\):\( *\)test\([A-Za-z0-9_-]*\):\( *\)$/;\1\2-LABEL:\3test\4:\5/g" test/CodeGen/*/*.ll which was written conservatively to avoid false positives rather than false negatives. I scanned through all the changes and everything looks correct. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186258 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
747 B
LLVM
20 lines
747 B
LLVM
; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi | FileCheck %s
|
|
|
|
@.str = private unnamed_addr constant [12 x i8] c"val.a = %f\0A\00"
|
|
%struct_t = type { double, double, double }
|
|
@static_val = constant %struct_t { double 1.0, double 2.0, double 3.0 }
|
|
|
|
declare i32 @printf(i8*, ...)
|
|
|
|
; CHECK-LABEL: test_byval_usage_scheduling:
|
|
; CHECK: str r3, [sp, #12]
|
|
; CHECK: str r2, [sp, #8]
|
|
; CHECK: vldr d16, [sp, #8]
|
|
define void @test_byval_usage_scheduling(i32 %n1, i32 %n2, %struct_t* byval %val) nounwind {
|
|
entry:
|
|
%a = getelementptr inbounds %struct_t* %val, i32 0, i32 0
|
|
%0 = load double* %a
|
|
%call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([12 x i8]* @.str, i32 0, i32 0), double %0)
|
|
ret void
|
|
}
|