brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.1 KiB · db3ab3d Raw
99 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -o - -mtriple=aarch64-unknown-unknown -run-pass=aarch64-prelegalizer-combiner -verify-machineinstrs  %s | FileCheck %s3---4name:            test_combine_fneg_fneg5body:             |6  bb.1:7  liveins: $w08    ; CHECK-LABEL: name: test_combine_fneg_fneg9    ; CHECK: liveins: $w010    ; CHECK-NEXT: {{  $}}11    ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s32) = COPY $w012    ; CHECK-NEXT: $w0 = COPY [[COPY]](s32)13    %0:_(s32) = COPY $w014    %1:_(s32) = G_FNEG %0(s32)15    %2:_(s32) = G_FNEG %1(s32)16    $w0 = COPY %2(s32)17...18---19name:            test_combine_fneg_fneg_vec20body:             |21  bb.1:22  liveins: $x023    ; CHECK-LABEL: name: test_combine_fneg_fneg_vec24    ; CHECK: liveins: $x025    ; CHECK-NEXT: {{  $}}26    ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(<2 x s32>) = COPY $x027    ; CHECK-NEXT: $x0 = COPY [[COPY]](<2 x s32>)28    %0:_(<2 x s32>) = COPY $x029    %1:_(<2 x s32>) = G_FNEG %0(<2 x s32>)30    %2:_(<2 x s32>) = G_FNEG %1(<2 x s32>)31    $x0 = COPY %2(<2 x s32>)32...33---34name:            test_combine_half_fneg_neg_constant35body:             |36  bb.1:37    ; CHECK-LABEL: name: test_combine_half_fneg_neg_constant38    ; CHECK: [[C:%[0-9]+]]:_(s16) = G_FCONSTANT half 0xH458039    ; CHECK-NEXT: $h0 = COPY [[C]](s16)40    %0:_(s16) = G_FCONSTANT half 0xHC58041    %1:_(s16) = G_FNEG %042    $h0 = COPY %1(s16)43...44---45name:            test_combine_half_fneg_pos_constant46body:             |47  bb.1:48    ; CHECK-LABEL: name: test_combine_half_fneg_pos_constant49    ; CHECK: [[C:%[0-9]+]]:_(s16) = G_FCONSTANT half 0xHC58050    ; CHECK-NEXT: $h0 = COPY [[C]](s16)51    %0:_(s16) = G_FCONSTANT half 0xH458052    %1:_(s16) = G_FNEG %053    $h0 = COPY %1(s16)54...55---56name:            test_combine_float_fneg_neg_constant57body:             |58  bb.1:59    ; CHECK-LABEL: name: test_combine_float_fneg_neg_constant60    ; CHECK: [[C:%[0-9]+]]:_(s32) = G_FCONSTANT float 5.500000e+0061    ; CHECK-NEXT: $w0 = COPY [[C]](s32)62    %0:_(s32) = G_FCONSTANT float -5.500000e+0063    %1:_(s32) = G_FNEG %064    $w0 = COPY %1(s32)65...66---67name:            test_combine_float_fneg_pos_constant68body:             |69  bb.1:70    ; CHECK-LABEL: name: test_combine_float_fneg_pos_constant71    ; CHECK: [[C:%[0-9]+]]:_(s32) = G_FCONSTANT float -5.500000e+0072    ; CHECK-NEXT: $w0 = COPY [[C]](s32)73    %0:_(s32) = G_FCONSTANT float 5.500000e+0074    %1:_(s32) = G_FNEG %075    $w0 = COPY %1(s32)76...77---78name:            test_combine_double_fneg_neg_constant79body:             |80  bb.1:81    ; CHECK-LABEL: name: test_combine_double_fneg_neg_constant82    ; CHECK: [[C:%[0-9]+]]:_(s64) = G_FCONSTANT double 4.200000e+0083    ; CHECK-NEXT: $x0 = COPY [[C]](s64)84    %0:_(s64) = G_FCONSTANT double -4.200000e+0085    %1:_(s64) = G_FNEG %086    $x0 = COPY %1(s64)87...88---89name:            test_combine_double_fneg_pos_constant90body:             |91  bb.1:92    ; CHECK-LABEL: name: test_combine_double_fneg_pos_constant93    ; CHECK: [[C:%[0-9]+]]:_(s64) = G_FCONSTANT double -4.200000e+0094    ; CHECK-NEXT: $x0 = COPY [[C]](s64)95    %0:_(s64) = G_FCONSTANT double 4.200000e+0096    %1:_(s64) = G_FNEG %097    $x0 = COPY %1(s64)98...99