1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -run-pass=legalizer -global-isel %s -o - | FileCheck %s
5 target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
6 target triple = "aarch64--"
7 define void @test_fneg_f32() {
11 define void @test_fneg_f64() {
24 ; CHECK-LABEL: name: test_fneg_f32
25 ; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY %s0
26 ; CHECK: [[C:%[0-9]+]]:_(s32) = G_FCONSTANT float -0.000000e+00
27 ; CHECK: [[FSUB:%[0-9]+]]:_(s32) = G_FSUB [[C]], [[COPY]]
28 ; CHECK: %s0 = COPY [[FSUB]](s32)
41 ; CHECK-LABEL: name: test_fneg_f64
42 ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY %d0
43 ; CHECK: [[C:%[0-9]+]]:_(s64) = G_FCONSTANT double -0.000000e+00
44 ; CHECK: [[FSUB:%[0-9]+]]:_(s64) = G_FSUB [[C]], [[COPY]]
45 ; CHECK: %d0 = COPY [[FSUB]](s64)