1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -run-pass=legalizer %s -o - | FileCheck %s
5 target triple = "x86_64--"
6 define void @test_fneg_f32() {
10 define void @test_fneg_f64() {
23 ; CHECK-LABEL: name: test_fneg_f32
24 ; CHECK: [[DEF:%[0-9]+]]:_(s32) = IMPLICIT_DEF
25 ; CHECK: [[C:%[0-9]+]]:_(s32) = G_FCONSTANT float -0.000000e+00
26 ; CHECK: [[FSUB:%[0-9]+]]:_(s32) = G_FSUB [[C]], [[DEF]]
27 ; CHECK: $edi = COPY [[FSUB]](s32)
28 %0(s32) = IMPLICIT_DEF
40 ; CHECK-LABEL: name: test_fneg_f64
41 ; CHECK: [[DEF:%[0-9]+]]:_(s64) = G_IMPLICIT_DEF
42 ; CHECK: [[C:%[0-9]+]]:_(s64) = G_FCONSTANT double -0.000000e+00
43 ; CHECK: [[FSUB:%[0-9]+]]:_(s64) = G_FSUB [[C]], [[DEF]]
44 ; CHECK: $rdi = COPY [[FSUB]](s64)
45 %0(s64) = G_IMPLICIT_DEF