diff options
Diffstat (limited to 'test/CodeGen/AArch64/illegal-float-ops.ll')
-rw-r--r-- | test/CodeGen/AArch64/illegal-float-ops.ll | 46 |
1 files changed, 36 insertions, 10 deletions
diff --git a/test/CodeGen/AArch64/illegal-float-ops.ll b/test/CodeGen/AArch64/illegal-float-ops.ll index 446151b..03c6d8d 100644 --- a/test/CodeGen/AArch64/illegal-float-ops.ll +++ b/test/CodeGen/AArch64/illegal-float-ops.ll @@ -9,7 +9,7 @@ declare double @llvm.cos.f64(double) declare fp128 @llvm.cos.f128(fp128) define void @test_cos(float %float, double %double, fp128 %fp128) { -; CHECK: test_cos: +; CHECK-LABEL: test_cos: %cosfloat = call float @llvm.cos.f32(float %float) store float %cosfloat, float* @varfloat @@ -31,7 +31,7 @@ declare double @llvm.exp.f64(double) declare fp128 @llvm.exp.f128(fp128) define void @test_exp(float %float, double %double, fp128 %fp128) { -; CHECK: test_exp: +; CHECK-LABEL: test_exp: %expfloat = call float @llvm.exp.f32(float %float) store float %expfloat, float* @varfloat @@ -53,7 +53,7 @@ declare double @llvm.exp2.f64(double) declare fp128 @llvm.exp2.f128(fp128) define void @test_exp2(float %float, double %double, fp128 %fp128) { -; CHECK: test_exp2: +; CHECK-LABEL: test_exp2: %exp2float = call float @llvm.exp2.f32(float %float) store float %exp2float, float* @varfloat @@ -75,7 +75,7 @@ declare double @llvm.log.f64(double) declare fp128 @llvm.log.f128(fp128) define void @test_log(float %float, double %double, fp128 %fp128) { -; CHECK: test_log: +; CHECK-LABEL: test_log: %logfloat = call float @llvm.log.f32(float %float) store float %logfloat, float* @varfloat @@ -97,7 +97,7 @@ declare double @llvm.log2.f64(double) declare fp128 @llvm.log2.f128(fp128) define void @test_log2(float %float, double %double, fp128 %fp128) { -; CHECK: test_log2: +; CHECK-LABEL: test_log2: %log2float = call float @llvm.log2.f32(float %float) store float %log2float, float* @varfloat @@ -119,7 +119,7 @@ declare double @llvm.log10.f64(double) declare fp128 @llvm.log10.f128(fp128) define void @test_log10(float %float, double %double, fp128 %fp128) { -; CHECK: test_log10: +; CHECK-LABEL: test_log10: %log10float = call float @llvm.log10.f32(float %float) store float %log10float, float* @varfloat @@ -141,7 +141,7 @@ declare double @llvm.sin.f64(double) declare fp128 @llvm.sin.f128(fp128) define void @test_sin(float %float, double %double, fp128 %fp128) { -; CHECK: test_sin: +; CHECK-LABEL: test_sin: %sinfloat = call float @llvm.sin.f32(float %float) store float %sinfloat, float* @varfloat @@ -163,7 +163,7 @@ declare double @llvm.pow.f64(double, double) declare fp128 @llvm.pow.f128(fp128, fp128) define void @test_pow(float %float, double %double, fp128 %fp128) { -; CHECK: test_pow: +; CHECK-LABEL: test_pow: %powfloat = call float @llvm.pow.f32(float %float, float %float) store float %powfloat, float* @varfloat @@ -185,7 +185,7 @@ declare double @llvm.powi.f64(double, i32) declare fp128 @llvm.powi.f128(fp128, i32) define void @test_powi(float %float, double %double, i32 %exponent, fp128 %fp128) { -; CHECK: test_powi: +; CHECK-LABEL: test_powi: %powifloat = call float @llvm.powi.f32(float %float, i32 %exponent) store float %powifloat, float* @varfloat @@ -203,7 +203,7 @@ define void @test_powi(float %float, double %double, i32 %exponent, fp128 %fp128 } define void @test_frem(float %float, double %double, fp128 %fp128) { -; CHECK: test_frem: +; CHECK-LABEL: test_frem: %fremfloat = frem float %float, %float store float %fremfloat, float* @varfloat @@ -219,3 +219,29 @@ define void @test_frem(float %float, double %double, fp128 %fp128) { ret void } + +declare fp128 @llvm.fma.f128(fp128, fp128, fp128) + +define void @test_fma(fp128 %fp128) { +; CHECK-LABEL: test_fma: + + %fmafp128 = call fp128 @llvm.fma.f128(fp128 %fp128, fp128 %fp128, fp128 %fp128) + store fp128 %fmafp128, fp128* @varfp128 +; CHECK: bl fmal + + ret void +} + +declare fp128 @llvm.fmuladd.f128(fp128, fp128, fp128) + +define void @test_fmuladd(fp128 %fp128) { +; CHECK-LABEL: test_fmuladd: + + %fmuladdfp128 = call fp128 @llvm.fmuladd.f128(fp128 %fp128, fp128 %fp128, fp128 %fp128) + store fp128 %fmuladdfp128, fp128* @varfp128 +; CHECK-NOT: bl fmal +; CHECK: bl __multf3 +; CHECK: bl __addtf3 + + ret void +} |