1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=aarch64 -run-pass=legalizer %s -o - | FileCheck %s
7 ; CHECK-LABEL: name: test_pow
8 ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $d0
9 ; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $d1
10 ; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $s2
11 ; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $s3
12 ; CHECK: ADJCALLSTACKDOWN 0, 0, implicit-def $sp, implicit $sp
13 ; CHECK: $d0 = COPY [[COPY]](s64)
14 ; CHECK: $d1 = COPY [[COPY1]](s64)
15 ; CHECK: BL &pow, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $d0, implicit $d1, implicit-def $d0
16 ; CHECK: [[COPY4:%[0-9]+]]:_(s64) = COPY $d0
17 ; CHECK: ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp
18 ; CHECK: $x0 = COPY [[COPY4]](s64)
19 ; CHECK: ADJCALLSTACKDOWN 0, 0, implicit-def $sp, implicit $sp
20 ; CHECK: $s0 = COPY [[COPY2]](s32)
21 ; CHECK: $s1 = COPY [[COPY3]](s32)
22 ; CHECK: BL &powf, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit $s0, implicit $s1, implicit-def $s0
23 ; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY $s0
24 ; CHECK: ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp
25 ; CHECK: $w0 = COPY [[COPY5]](s32)
30 %4:_(s64) = G_FPOW %0, %1
32 %5:_(s32) = G_FPOW %2, %3