|
| 1 | +# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 6 |
| 2 | +# RUN: llc -mtriple=i686-linux-gnu -run-pass=regbankselect,instruction-select %s -o - | FileCheck %s --check-prefixes GISEL-I686 |
| 3 | + |
| 4 | +--- |
| 5 | +name: fneg_f64 |
| 6 | +alignment: 16 |
| 7 | +legalized: true |
| 8 | +fixedStack: |
| 9 | + - { id: 0, type: default, offset: 0, size: 8, alignment: 16, stack-id: default, |
| 10 | + isImmutable: true, isAliased: false, callee-saved-register: '', callee-saved-restored: true, |
| 11 | + debug-info-variable: '', debug-info-expression: '', debug-info-location: '' } |
| 12 | +body: | |
| 13 | + bb.1: |
| 14 | + ; GISEL-I686-LABEL: name: fneg_f64 |
| 15 | + ; GISEL-I686: [[DEF:%[0-9]+]]:rfp64 = IMPLICIT_DEF |
| 16 | + ; GISEL-I686-NEXT: [[CHS_Fp64_:%[0-9]+]]:rfp64 = CHS_Fp64 [[DEF]], implicit-def dead $fpsw |
| 17 | + ; GISEL-I686-NEXT: $fp0 = COPY [[CHS_Fp64_]] |
| 18 | + ; GISEL-I686-NEXT: RET 0, implicit $fp0 |
| 19 | + %1:_(p0) = G_FRAME_INDEX %fixed-stack.0 |
| 20 | + %0:_(s64) = IMPLICIT_DEF |
| 21 | + %2:_(s64) = G_FNEG %0 |
| 22 | + $fp0 = COPY %2(s64) |
| 23 | + RET 0, implicit $fp0 |
| 24 | +... |
| 25 | +--- |
| 26 | +name: fneg_f32 |
| 27 | +alignment: 16 |
| 28 | +legalized: true |
| 29 | +fixedStack: |
| 30 | + - { id: 0, type: default, offset: 0, size: 4, alignment: 16, stack-id: default, |
| 31 | + isImmutable: true, isAliased: false, callee-saved-register: '', callee-saved-restored: true, |
| 32 | + debug-info-variable: '', debug-info-expression: '', debug-info-location: '' } |
| 33 | +body: | |
| 34 | + bb.1: |
| 35 | + ; GISEL-I686-LABEL: name: fneg_f32 |
| 36 | + ; GISEL-I686: [[LD_Fp32m:%[0-9]+]]:rfp32 = nofpexcept LD_Fp32m %fixed-stack.0, 1, $noreg, 0, $noreg, implicit-def dead $fpsw, implicit $fpcw :: (invariant load (s32) from %fixed-stack.0, align 16) |
| 37 | + ; GISEL-I686-NEXT: [[CHS_Fp32_:%[0-9]+]]:rfp32 = CHS_Fp32 [[LD_Fp32m]], implicit-def dead $fpsw |
| 38 | + ; GISEL-I686-NEXT: $fp0 = COPY [[CHS_Fp32_]] |
| 39 | + ; GISEL-I686-NEXT: RET 0, implicit $fp0 |
| 40 | + %1:_(p0) = G_FRAME_INDEX %fixed-stack.0 |
| 41 | + %0:_(s32) = G_LOAD %1(p0) :: (invariant load (s32) from %fixed-stack.0, align 16) |
| 42 | + %2:_(s32) = G_FNEG %0 |
| 43 | + $fp0 = COPY %2(s32) |
| 44 | + RET 0, implicit $fp0 |
| 45 | +... |
| 46 | +--- |
| 47 | +name: fneg_f64_mem |
| 48 | +alignment: 16 |
| 49 | +legalized: true |
| 50 | +fixedStack: |
| 51 | + - { id: 0, type: default, offset: 4, size: 4, alignment: 4, stack-id: default, |
| 52 | + isImmutable: true, isAliased: false, callee-saved-register: '', callee-saved-restored: true, |
| 53 | + debug-info-variable: '', debug-info-expression: '', debug-info-location: '' } |
| 54 | + - { id: 1, type: default, offset: 0, size: 4, alignment: 16, stack-id: default, |
| 55 | + isImmutable: true, isAliased: false, callee-saved-register: '', callee-saved-restored: true, |
| 56 | + debug-info-variable: '', debug-info-expression: '', debug-info-location: '' } |
| 57 | +body: | |
| 58 | + bb.1: |
| 59 | + ; GISEL-I686-LABEL: name: fneg_f64_mem |
| 60 | + ; GISEL-I686: [[DEF:%[0-9]+]]:rfp64 = IMPLICIT_DEF |
| 61 | + ; GISEL-I686-NEXT: [[CHS_Fp64_:%[0-9]+]]:rfp64 = CHS_Fp64 [[DEF]], implicit-def dead $fpsw |
| 62 | + ; GISEL-I686-NEXT: $fp0 = COPY [[CHS_Fp64_]] |
| 63 | + ; GISEL-I686-NEXT: RET 0, implicit $fp0 |
| 64 | + %1:_(p0) = G_FRAME_INDEX %fixed-stack.1 |
| 65 | + %0:_(s64) = IMPLICIT_DEF |
| 66 | + %2:_(s64) = G_FNEG %0 |
| 67 | + $fp0 = COPY %2(s64) |
| 68 | + RET 0, implicit $fp0 |
| 69 | +... |
| 70 | +--- |
| 71 | +name: fneg_f32_mem |
| 72 | +alignment: 16 |
| 73 | +legalized: true |
| 74 | +fixedStack: |
| 75 | + - { id: 0, type: default, offset: 4, size: 4, alignment: 4, stack-id: default, |
| 76 | + isImmutable: true, isAliased: false, callee-saved-register: '', callee-saved-restored: true, |
| 77 | + debug-info-variable: '', debug-info-expression: '', debug-info-location: '' } |
| 78 | + - { id: 1, type: default, offset: 0, size: 4, alignment: 16, stack-id: default, |
| 79 | + isImmutable: true, isAliased: false, callee-saved-register: '', callee-saved-restored: true, |
| 80 | + debug-info-variable: '', debug-info-expression: '', debug-info-location: '' } |
| 81 | +body: | |
| 82 | + bb.1: |
| 83 | + ; GISEL-I686-LABEL: name: fneg_f32_mem |
| 84 | + ; GISEL-I686: [[LD_Fp32m:%[0-9]+]]:rfp32 = nofpexcept LD_Fp32m %fixed-stack.1, 1, $noreg, 0, $noreg, implicit-def dead $fpsw, implicit $fpcw :: (invariant load (p0) from %fixed-stack.1) |
| 85 | + ; GISEL-I686-NEXT: [[CHS_Fp32_:%[0-9]+]]:rfp32 = CHS_Fp32 [[LD_Fp32m]], implicit-def dead $fpsw |
| 86 | + ; GISEL-I686-NEXT: $fp0 = COPY [[CHS_Fp32_]] |
| 87 | + ; GISEL-I686-NEXT: RET 0, implicit $fp0 |
| 88 | + %2:_(p0) = G_FRAME_INDEX %fixed-stack.1 |
| 89 | + %0:_(p0) = G_LOAD %2(p0) :: (invariant load (p0) from %fixed-stack.1, align 16) |
| 90 | + %3:_(p0) = G_FRAME_INDEX %fixed-stack.0 |
| 91 | + %1:_(s32) = G_LOAD %3(p0) :: (invariant load (p0) from %fixed-stack.0) |
| 92 | + %4:_(s32) = G_FNEG %1 |
| 93 | + $fp0 = COPY %4(s32) |
| 94 | + RET 0, implicit $fp0 |
| 95 | +... |
| 96 | +--- |
| 97 | +name: test_fp80 |
| 98 | +alignment: 16 |
| 99 | +legalized: true |
| 100 | +fixedStack: |
| 101 | + - { id: 0, type: default, offset: 0, size: 10, alignment: 16, stack-id: default, |
| 102 | + isImmutable: true, isAliased: false, callee-saved-register: '', callee-saved-restored: true, |
| 103 | + debug-info-variable: '', debug-info-expression: '', debug-info-location: '' } |
| 104 | +body: | |
| 105 | + bb.1: |
| 106 | + ; GISEL-I686-LABEL: name: test_fp80 |
| 107 | + ; GISEL-I686: [[LD_Fp80m:%[0-9]+]]:rfp80 = nofpexcept LD_Fp80m %fixed-stack.0, 1, $noreg, 0, $noreg, implicit-def dead $fpsw, implicit $fpcw :: (invariant load (s80) from %fixed-stack.0, align 16) |
| 108 | + ; GISEL-I686-NEXT: [[CHS_Fp80_:%[0-9]+]]:rfp80 = CHS_Fp80 [[LD_Fp80m]], implicit-def dead $fpsw |
| 109 | + ; GISEL-I686-NEXT: $fp0 = COPY [[CHS_Fp80_]] |
| 110 | + ; GISEL-I686-NEXT: RET 0, implicit $fp0 |
| 111 | + %1:_(p0) = G_FRAME_INDEX %fixed-stack.0 |
| 112 | + %0:_(s80) = G_LOAD %1(p0) :: (invariant load (s80) from %fixed-stack.0, align 16) |
| 113 | + %2:_(s80) = G_FNEG %0 |
| 114 | + $fp0 = COPY %2(s80) |
| 115 | + RET 0, implicit $fp0 |
| 116 | +... |
0 commit comments