brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 3a0b2ae Raw
71 lines · plain
1# RUN: llvm-mc %s -triple=mipsel-unknown-linux -mcpu=mips32r2 -mattr=+msa | \2# RUN:   FileCheck %s3# .set push creates a copy of the current environment.4# .set pop restores the previous environment.5# FIXME: Also test resetting of .set macro/nomacro option.6 7    .text8    # The first environment on the stack (with initial values).9    lw       $1, 65536($1)10    b        133611    addvi.b  $w15, $w13, 1812    13    # Create a new environment.14    .set push15    .set at=$ra           # Test the ATReg option.16    lw       $1, 65536($1)17    .set noreorder        # Test the Reorder option.18    b        133619    .set nomsa            # Test the Features option (ASE).20    .set mips32r6         # Test the Features option (ISA).21    mod      $2, $4, $622 23    # Switch back to the first environment.24    .set pop25    lw       $1, 65536($1)26    b        133627    addvi.b  $w15, $w13, 1828 29# CHECK:  lui      $1, 130# CHECK:  addu     $1, $1, $131# CHECK:  lw       $1, 0($1)32# CHECK:  b        133633# CHECK:  nop34# CHECK:  addvi.b  $w15, $w13, 1835 36# CHECK:  .set push37# CHECK:  lui      $ra, 138# CHECK:  addu     $ra, $ra, $139# CHECK:  lw       $1, 0($ra)40# CHECK:  .set noreorder   41# CHECK:  b        133642# CHECK-NOT:  nop43# CHECK:  .set nomsa       44# CHECK:  .set mips32r6    45# CHECK:  mod      $2, $4, $646 47# CHECK:  .set pop48# CHECK:  lui      $1, 149# CHECK:  addu     $1, $1, $150# CHECK:  lw       $1, 0($1)51# CHECK:  b        133652# CHECK:  nop53# CHECK:  addvi.b  $w15, $w13, 1854 55    .set push56    .set dsp57    lbux    $7, $10($11)58    .set pop59 60    .set push61    .set dsp62    lbux    $7, $10($11)63# CHECK-NOT: :[[@LINE-1]]:5: error: instruction requires a CPU feature not currently enabled64    .set pop65 66    .set push67    .set dsp68    lbux    $7, $10($11)69# CHECK-NOT: :[[@LINE-1]]:5: error: instruction requires a CPU feature not currently enabled70    .set pop71