brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · d2d1c1d Raw
54 lines · plain
1# RUN: llvm-mc %s -triple=mipsel-unknown-linux -show-encoding -mcpu=mips32r2 \2# RUN:     2>%t1 | FileCheck %s3# RUN: FileCheck -check-prefix=WARNINGS %s < %t14 5# Check that the assembler can handle the documented syntax for ".set at" and6# will set the correct value for $at.7# Note that writing $at is always the same as writing $1.8 9    .text10foo:11# CHECK:   jr    $1                      # encoding: [0x08,0x00,0x20,0x00]12# WARNINGS: :[[@LINE+2]]:11: warning: used $at (currently $1) without ".set noat"13    .set    at=$114    jr    $at15 16# CHECK:   jr    $1                      # encoding: [0x08,0x00,0x20,0x00]17# WARNINGS: :[[@LINE+2]]:11: warning: used $at (currently $1) without ".set noat"18    .set    at=$119    jr    $120 21# CHECK:   jr    $1                      # encoding: [0x08,0x00,0x20,0x00]22# WARNINGS: :[[@LINE+2]]:11: warning: used $at (currently $1) without ".set noat"23    .set    at=$at24    jr    $at25 26# CHECK:   jr    $1                      # encoding: [0x08,0x00,0x20,0x00]27# WARNINGS: :[[@LINE+2]]:11: warning: used $at (currently $1) without ".set noat"28    .set    at=$at29    jr    $130 31# WARNINGS-NOT: warning: used $at (currently ${{[0-9]+}}) without ".set noat"32# CHECK:   jr    $1                      # encoding: [0x08,0x00,0x20,0x00]33    .set    at=$234    jr    $at35# CHECK:   jr    $1                      # encoding: [0x08,0x00,0x20,0x00]36    .set    at=$337    jr    $at38# CHECK:   jr    $1                      # encoding: [0x08,0x00,0x20,0x00]39    .set noat40    jr    $at41# CHECK:   jr    $1                      # encoding: [0x08,0x00,0x20,0x00]42    .set at=$043    jr    $at44 45# CHECK:   jr    $16                     # encoding: [0x08,0x00,0x00,0x02]46# WARNINGS: :[[@LINE+2]]:11: warning: used $at (currently $16) without ".set noat"47    .set    at=$1648    jr    $s049 50# CHECK:   jr    $16                     # encoding: [0x08,0x00,0x00,0x02]51# WARNINGS: :[[@LINE+2]]:11: warning: used $at (currently $16) without ".set noat"52    .set    at=$1653    jr    $1654