diff options
Diffstat (limited to 'llvm/test/CodeGen/AArch64/f16-instructions.ll')
| -rw-r--r-- | llvm/test/CodeGen/AArch64/f16-instructions.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/f16-instructions.ll b/llvm/test/CodeGen/AArch64/f16-instructions.ll index b4952c560f4..df4f64e91b7 100644 --- a/llvm/test/CodeGen/AArch64/f16-instructions.ll +++ b/llvm/test/CodeGen/AArch64/f16-instructions.ll @@ -781,6 +781,9 @@ declare half @llvm.aarch64.neon.frecpe.f16(half %a) #0 declare half @llvm.aarch64.neon.frecpx.f16(half %a) #0 declare half @llvm.aarch64.neon.frsqrte.f16(half %a) #0 +; FALLBACK-NOT: remark:{{.*}}test_sqrt +; FALLBACK-FP16-NOT: remark:{{.*}}test_sqrt + ; CHECK-CVT-LABEL: test_sqrt: ; CHECK-CVT-NEXT: fcvt s0, h0 ; CHECK-CVT-NEXT: fsqrt s0, s0 @@ -791,6 +794,16 @@ declare half @llvm.aarch64.neon.frsqrte.f16(half %a) #0 ; CHECK-FP16-NEXT: fsqrt h0, h0 ; CHECK-FP16-NEXT: ret +; GISEL-CVT-LABEL: test_sqrt: +; GISEL-CVT-NEXT: fcvt s0, h0 +; GISEL-CVT-NEXT: fsqrt s0, s0 +; GISEL-CVT-NEXT: fcvt h0, s0 +; GISEL-CVT-NEXT: ret + +; GISEL-FP16-LABEL: test_sqrt: +; GISEL-FP16-NEXT: fsqrt h0, h0 +; GISEL-FP16-NEXT: ret + define half @test_sqrt(half %a) #0 { %r = call half @llvm.sqrt.f16(half %a) ret half %r |

