mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
b4dc0233c9
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
18 lines
570 B
LLVM
18 lines
570 B
LLVM
; RUN: llc < %s -mtriple=armv7-eabi -float-abi=hard -mcpu=cortex-a8 | FileCheck %s
|
|
|
|
; CHECK-LABEL: test:
|
|
; CHECK: vabs.f32 q0, q0
|
|
define <4 x float> @test(<4 x float> %a) {
|
|
%foo = call <4 x float> @llvm.fabs.v4f32(<4 x float> %a)
|
|
ret <4 x float> %foo
|
|
}
|
|
declare <4 x float> @llvm.fabs.v4f32(<4 x float> %a)
|
|
|
|
; CHECK-LABEL: test2:
|
|
; CHECK: vabs.f32 d0, d0
|
|
define <2 x float> @test2(<2 x float> %a) {
|
|
%foo = call <2 x float> @llvm.fabs.v2f32(<2 x float> %a)
|
|
ret <2 x float> %foo
|
|
}
|
|
declare <2 x float> @llvm.fabs.v2f32(<2 x float> %a)
|