xref: /aosp_15_r20/external/llvm/test/MC/Sparc/sparc-assembly-exprs.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker! RUN: llvm-mc %s -arch=sparc   -show-encoding | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker        ! CHECK: mov 1033, %o1  ! encoding: [0x92,0x10,0x24,0x09]
4*9880d681SAndroid Build Coastguard Worker        mov      (0x400|9), %o1
5*9880d681SAndroid Build Coastguard Worker        ! CHECK: mov 60, %o2    ! encoding: [0x94,0x10,0x20,0x3c]
6*9880d681SAndroid Build Coastguard Worker        mov      ((12+3)<<2), %o2
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker! "." is exactly like a temporary symbol equated to the current line.
9*9880d681SAndroid Build Coastguard Worker! RUN: llvm-mc %s -arch=sparc | FileCheck %s --check-prefix=DOTEXPR
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker        ! DOTEXPR: .Ltmp0
12*9880d681SAndroid Build Coastguard Worker        ! DOTEXPR-NEXT: ba .Ltmp0+8
13*9880d681SAndroid Build Coastguard Worker        b . + 8
14