brintos

brintos / llvm-project-archived public Read only

0
0
Text · 961 B · 95051a2 Raw
25 lines · plain
1; RUN: llvm-mc -triple avr -mattr=sram,tinyencoding -show-encoding < %s | FileCheck %s2; RUN: llvm-mc -filetype=obj -triple avr -mattr=sram,tinyencoding < %s | llvm-objdump --no-print-imm-hex -dr --mattr=sram,tinyencoding - | FileCheck -check-prefix=CHECK-INST %s3 4foo:5  sts 3,        r166  sts 127,      r177  sts SYMBOL+1, r258  sts x,        r259  sts r25+1,    r2510 11; CHECK:  sts 3,        r16           ; encoding: [0x03,0xa8]12; CHECK:  sts 127,      r17           ; encoding: [0x1f,0xaf]13; CHECK:  sts SYMBOL+1, r25           ; encoding: [0x90'A',0xa8'A']14; CHECK:  sts x,        r25           ; encoding: [0x90'A',0xa8'A']15; CHECK:  sts r25+1,    r25           ; encoding: [0x90'A',0xa8'A']16 17; CHECK-INST: sts 3,   r1618; CHECK-INST: sts 127, r1719; CHECK-INST: sts 0,   r2520; CHECK-INST:     R_AVR_LDS_STS_16 SYMBOL+0x121; CHECK-INST: sts 0,   r2522; CHECK-INST:     R_AVR_LDS_STS_16 x23; CHECK-INST: sts 0,   r2524; CHECK-INST:     R_AVR_LDS_STS_16 r25+0x125