[SPARC]: recognize '.' as the start of an assembler expression.
[oota-llvm.git] / test / MC / Sparc / sparc-assembly-exprs.s
1 ! RUN: llvm-mc %s -arch=sparc   -show-encoding | FileCheck %s
2
3         ! CHECK: mov 1033, %o1  ! encoding: [0x92,0x10,0x24,0x09]
4         mov      (0x400|9), %o1
5         ! CHECK: mov 60, %o2    ! encoding: [0x94,0x10,0x20,0x3c]
6         mov      (12+3<<2), %o2
7
8 ! "." is exactly like a temporary symbol equated to the current line.
9 ! RUN: llvm-mc %s -arch=sparc | FileCheck %s --check-prefix=DOTEXPR
10
11         ! DOTEXPR: .Ltmp0
12         ! DOTEXPR-NEXT: ba .Ltmp0+8
13         b . + 8