88 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple=i386-linux-gnu -mattr=+sse2 -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=X323# RUN: llc -mtriple=x86_64-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=X644 5--- |6 define void @test_constant() { ret void }7 define void @test_fconstant() { ret void }8 9...10---11name: test_constant12registers:13 - { id: 0, class: _ }14 - { id: 1, class: _ }15 - { id: 2, class: _ }16 - { id: 3, class: _ }17 - { id: 4, class: _ }18body: |19 bb.1 (%ir-block.0):20 ; X32-LABEL: name: test_constant21 ; X32: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 122 ; X32: $eax = COPY [[C]](s32)23 ; X32: [[C1:%[0-9]+]]:_(s8) = G_CONSTANT i8 824 ; X32: $al = COPY [[C1]](s8)25 ; X32: [[C2:%[0-9]+]]:_(s16) = G_CONSTANT i16 1626 ; X32: $ax = COPY [[C2]](s16)27 ; X32: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 3228 ; X32: $eax = COPY [[C3]](s32)29 ; X32: [[C4:%[0-9]+]]:_(s32) = G_CONSTANT i32 6430 ; X32: [[C5:%[0-9]+]]:_(s32) = G_CONSTANT i32 031 ; X32: [[MV:%[0-9]+]]:_(s64) = G_MERGE_VALUES [[C4]](s32), [[C5]](s32)32 ; X32: $rax = COPY [[MV]](s64)33 ; X32: RET 034 ; X64-LABEL: name: test_constant35 ; X64: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 136 ; X64: $eax = COPY [[C]](s32)37 ; X64: [[C1:%[0-9]+]]:_(s8) = G_CONSTANT i8 838 ; X64: $al = COPY [[C1]](s8)39 ; X64: [[C2:%[0-9]+]]:_(s16) = G_CONSTANT i16 1640 ; X64: $ax = COPY [[C2]](s16)41 ; X64: [[C3:%[0-9]+]]:_(s32) = G_CONSTANT i32 3242 ; X64: $eax = COPY [[C3]](s32)43 ; X64: [[C4:%[0-9]+]]:_(s64) = G_CONSTANT i64 6444 ; X64: $rax = COPY [[C4]](s64)45 ; X64: RET 046 %0(s1) = G_CONSTANT i1 147 %5:_(s32) = G_ANYEXT %048 $eax = COPY %549 50 %1(s8) = G_CONSTANT i8 851 $al = COPY %152 %2(s16) = G_CONSTANT i16 1653 $ax = COPY %254 55 %3(s32) = G_CONSTANT i32 3256 $eax = COPY %357 58 59 %4(s64) = G_CONSTANT i64 6460 $rax = COPY %461 62 RET 063...64---65name: test_fconstant66registers:67 - { id: 0, class: _ }68 - { id: 1, class: _ }69body: |70 bb.0:71 72 ; X32-LABEL: name: test_fconstant73 ; X32: [[C:%[0-9]+]]:_(s32) = G_FCONSTANT float 1.000000e+0074 ; X32: $eax = COPY [[C]](s32)75 ; X32: [[C1:%[0-9]+]]:_(s64) = G_FCONSTANT double 2.000000e+0076 ; X32: $rax = COPY [[C1]](s64)77 ; X64-LABEL: name: test_fconstant78 ; X64: [[C:%[0-9]+]]:_(s32) = G_FCONSTANT float 1.000000e+0079 ; X64: $eax = COPY [[C]](s32)80 ; X64: [[C1:%[0-9]+]]:_(s64) = G_FCONSTANT double 2.000000e+0081 ; X64: $rax = COPY [[C1]](s64)82 %0(s32) = G_FCONSTANT float 1.083 $eax = COPY %084 %1(s64) = G_FCONSTANT double 2.085 $rax = COPY %186...87 88