brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 94eb203 Raw
46 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS323--- |4 5  @.str = private unnamed_addr constant [11 x i8] c"hello %d \0A\00"6 7  define void @main() {entry: ret void}8  declare i32 @printf(ptr, ...)9 10...11---12name:            main13alignment:       414legalized:       true15regBankSelected: true16tracksRegLiveness: true17body:             |18  bb.1.entry:19    ; MIPS32-LABEL: name: main20    ; MIPS32: [[LUi:%[0-9]+]]:gpr32 = LUi target-flags(mips-abs-hi) @.str21    ; MIPS32: [[ADDiu:%[0-9]+]]:gpr32 = ADDiu [[LUi]], target-flags(mips-abs-lo) @.str22    ; MIPS32: [[LUi1:%[0-9]+]]:gpr32 = LUi 1883823    ; MIPS32: [[ORi:%[0-9]+]]:gpr32 = ORi [[LUi1]], 72224    ; MIPS32: [[ORi1:%[0-9]+]]:gpr32 = ORi $zero, 025    ; MIPS32: ADJCALLSTACKDOWN 16, 0, implicit-def $sp, implicit $sp26    ; MIPS32: $a0 = COPY [[ADDiu]]27    ; MIPS32: $a1 = COPY [[ORi]]28    ; MIPS32: JAL @printf, csr_o32, implicit-def $ra, implicit-def $sp, implicit $a0, implicit $a1, implicit-def $v029    ; MIPS32: ADJCALLSTACKUP 16, 0, implicit-def $sp, implicit $sp30    ; MIPS32: $v0 = COPY [[ORi1]]31    ; MIPS32: RetRA implicit $v032    %2:gprb(p0) = G_GLOBAL_VALUE @.str33    %1:gprb(p0) = COPY %2(p0)34    %3:gprb(s32) = G_CONSTANT i32 123456789035    %4:gprb(s32) = G_CONSTANT i32 036    ADJCALLSTACKDOWN 16, 0, implicit-def $sp, implicit $sp37    $a0 = COPY %1(p0)38    $a1 = COPY %3(s32)39    JAL @printf, csr_o32, implicit-def $ra, implicit-def $sp, implicit $a0, implicit $a1, implicit-def $v040    %0:gprb(s32) = COPY $v041    ADJCALLSTACKUP 16, 0, implicit-def $sp, implicit $sp42    $v0 = COPY %4(s32)43    RetRA implicit $v044 45...46