brintos

brintos / llvm-project-archived public Read only

0
0
Text · 909 B · 0b57534 Raw
26 lines · plain
1; RUN: llvm-mc -triple avr -mattr=sram -show-encoding < %s | FileCheck %s2; RUN: llvm-mc -filetype=obj -triple avr -mattr=sram < %s | llvm-objdump --no-print-imm-hex -dr --mattr=sram - | FileCheck -check-prefix=CHECK-INST %s3 4foo:5  sts 3,        r56  sts 255,      r77  sts SYMBOL+1, r258  sts r25,      r259  sts y+3,      r2510 11; CHECK:  sts 3,        r5            ; encoding: [0x50,0x92,0x03,0x00]12; CHECK:  sts 255,      r7            ; encoding: [0x70,0x92,0xff,0x00]13; CHECK:  sts SYMBOL+1, r25           ; encoding: [0x90,0x93,A,A]14; CHECK:  sts r25,      r25           ; encoding: [0x90,0x93,A,A]15; CHECK:  sts y+3,      r25           ; encoding: [0x90,0x93,A,A]16 17 18; CHECK-INST: sts 3,   r519; CHECK-INST: sts 255, r720; CHECK-INST: sts 0,   r2521; CHECK-INST:     R_AVR_16 SYMBOL+0x122; CHECK-INST: sts 0,   r2523; CHECK-INST:     R_AVR_16 r2524; CHECK-INST: sts 0,   r2525; CHECK-INST:     R_AVR_16 y+0x326