49 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -O0 -run-pass=legalizer %s -o - | FileCheck %s3 4--- |5 target triple = "x86_64--"6 define void @test_fneg_f32() {7 entry:8 ret void9 }10 define void @test_fneg_f64() {11 entry:12 ret void13 }14...15---16name: test_fneg_f3217registers:18 - { id: 0, class: _ }19 - { id: 1, class: _ }20body: |21 bb.1:22 liveins:23 ; CHECK-LABEL: name: test_fneg_f3224 ; CHECK: [[DEF:%[0-9]+]]:_(s32) = IMPLICIT_DEF25 ; CHECK: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 -214748364826 ; CHECK: [[XOR:%[0-9]+]]:_(s32) = G_XOR [[DEF]], [[C]]27 ; CHECK: $edi = COPY [[XOR]](s32)28 %0(s32) = IMPLICIT_DEF29 %1(s32) = G_FNEG %030 $edi = COPY %131...32---33name: test_fneg_f6434registers:35 - { id: 0, class: _ }36 - { id: 1, class: _ }37body: |38 bb.1:39 liveins:40 ; CHECK-LABEL: name: test_fneg_f6441 ; CHECK: [[DEF:%[0-9]+]]:_(s64) = G_IMPLICIT_DEF42 ; CHECK: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 -922337203685477580843 ; CHECK: [[XOR:%[0-9]+]]:_(s64) = G_XOR [[DEF]], [[C]]44 ; CHECK: $rdi = COPY [[XOR]](s64)45 %0(s64) = G_IMPLICIT_DEF46 %1(s64) = G_FNEG %047 $rdi = COPY %148...49