mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
9105f66d6f
I'm doing this in two phases for a better "git blame" record. This commit removes the previous AArch64 backend and redirects all functionality to ARM64. It also deduplicates test-lines and removes orphaned AArch64 tests. The next step will be "git mv ARM64 AArch64" and rewire most of the tests. Hopefully LLVM is still functional, though it would be even better if no-one ever had to care because the rename happens straight afterwards. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209576 91177308-0d34-0410-b5e6-96231b3b80d8
97 lines
2.7 KiB
LLVM
97 lines
2.7 KiB
LLVM
; RUN: llc -o - %s -verify-machineinstrs -mtriple=arm64-linux-gnu -mattr=+neon | FileCheck %s
|
|
|
|
|
|
define <2 x float> @test_cos_v2f64(<2 x double> %v1) {
|
|
; CHECK-LABEL: test_cos_v2f64:
|
|
; CHECK: bl cos
|
|
; CHECK: bl cos
|
|
%1 = call <2 x double> @llvm.cos.v2f64(<2 x double> %v1)
|
|
%2 = fptrunc <2 x double> %1 to <2 x float>
|
|
ret <2 x float> %2
|
|
}
|
|
|
|
define <2 x float> @test_sin_v2f64(<2 x double> %v1) {
|
|
; CHECK-LABEL: test_sin_v2f64:
|
|
; CHECK: bl sin
|
|
; CHECK: bl sin
|
|
%1 = call <2 x double> @llvm.sin.v2f64(<2 x double> %v1)
|
|
%2 = fptrunc <2 x double> %1 to <2 x float>
|
|
ret <2 x float> %2
|
|
}
|
|
|
|
define <2 x float> @test_pow_v2f64(<2 x double> %v1, <2 x double> %v2) {
|
|
; CHECK-LABEL: test_pow_v2f64:
|
|
; CHECK: bl pow
|
|
; CHECK: bl pow
|
|
%1 = call <2 x double> @llvm.pow.v2f64(<2 x double> %v1, <2 x double> %v2)
|
|
%2 = fptrunc <2 x double> %1 to <2 x float>
|
|
ret <2 x float> %2
|
|
}
|
|
|
|
declare <2 x double> @llvm.cos.v2f64(<2 x double>)
|
|
declare <2 x double> @llvm.sin.v2f64(<2 x double>)
|
|
declare <2 x double> @llvm.pow.v2f64(<2 x double>, <2 x double>)
|
|
|
|
define <2 x float> @test_cos_v2f32(<2 x float> %v1) {
|
|
; CHECK-LABEL: test_cos_v2f32:
|
|
; CHECK: bl cos
|
|
; CHECK: bl cos
|
|
%1 = call <2 x float> @llvm.cos.v2f32(<2 x float> %v1)
|
|
ret <2 x float> %1
|
|
}
|
|
|
|
define <2 x float> @test_sin_v2f32(<2 x float> %v1) {
|
|
; CHECK-LABEL: test_sin_v2f32:
|
|
; CHECK: bl sin
|
|
; CHECK: bl sin
|
|
%1 = call <2 x float> @llvm.sin.v2f32(<2 x float> %v1)
|
|
ret <2 x float> %1
|
|
}
|
|
|
|
define <2 x float> @test_pow_v2f32(<2 x float> %v1, <2 x float> %v2) {
|
|
; CHECK-LABEL: test_pow_v2f32:
|
|
; CHECK: bl pow
|
|
; CHECK: bl pow
|
|
%1 = call <2 x float> @llvm.pow.v2f32(<2 x float> %v1, <2 x float> %v2)
|
|
ret <2 x float> %1
|
|
}
|
|
|
|
declare <2 x float> @llvm.cos.v2f32(<2 x float>)
|
|
declare <2 x float> @llvm.sin.v2f32(<2 x float>)
|
|
declare <2 x float> @llvm.pow.v2f32(<2 x float>, <2 x float>)
|
|
|
|
define <4 x float> @test_cos_v4f32(<4 x float> %v1) {
|
|
; CHECK-LABEL: test_cos_v4f32:
|
|
; CHECK: bl cos
|
|
; CHECK: bl cos
|
|
; CHECK: bl cos
|
|
; CHECK: bl cos
|
|
%1 = call <4 x float> @llvm.cos.v4f32(<4 x float> %v1)
|
|
ret <4 x float> %1
|
|
}
|
|
|
|
define <4 x float> @test_sin_v4f32(<4 x float> %v1) {
|
|
; CHECK-LABEL: test_sin_v4f32:
|
|
; CHECK: bl sin
|
|
; CHECK: bl sin
|
|
; CHECK: bl sin
|
|
; CHECK: bl sin
|
|
%1 = call <4 x float> @llvm.sin.v4f32(<4 x float> %v1)
|
|
ret <4 x float> %1
|
|
}
|
|
|
|
define <4 x float> @test_pow_v4f32(<4 x float> %v1, <4 x float> %v2) {
|
|
; CHECK-LABEL: test_pow_v4f32:
|
|
; CHECK: bl pow
|
|
; CHECK: bl pow
|
|
; CHECK: bl pow
|
|
; CHECK: bl pow
|
|
%1 = call <4 x float> @llvm.pow.v4f32(<4 x float> %v1, <4 x float> %v2)
|
|
ret <4 x float> %1
|
|
}
|
|
|
|
declare <4 x float> @llvm.cos.v4f32(<4 x float>)
|
|
declare <4 x float> @llvm.sin.v4f32(<4 x float>)
|
|
declare <4 x float> @llvm.pow.v4f32(<4 x float>, <4 x float>)
|
|
|