1 # RUN: llvm-mc -triple=xtensa -filetype obj -o - %s \
2 # RUN: | llvm-readobj -S --sd - \
3 # RUN: | FileCheck -check-prefix=CHECK-LITERAL %s
5 # RUN: llvm-mc %s -triple=xtensa -show-encoding \
6 # RUN: | FileCheck -check-prefix=CHECK-INST %s
10 .literal .LCPI0_0, 305419896
11 .literal .LCPI1_0, ext_var
14 .type test_literal,@function
22 # CHECK-LITERAL: Section {
23 # CHECK-LITERAL: Name: .literal
24 # CHECK-LITERAL: SectionData (
25 # CHECK-LITERAL: 0000: 78563412 00000000 30750000
29 # CHECK-INST: .literal_position
30 # CHECK-INST: .literal .LCPI0_0, 305419896
31 # CHECK-INST: .literal .LCPI1_0, ext_var
32 # CHECK-INST: .global test_literal
33 # CHECK-INST: .p2align 2
34 # CHECK-INST: .type test_literal,@function
35 # CHECK-INST: test_literal:
36 # CHECK-INST: l32r a2, .LCPI0_0
37 # CHECK-INST: l32r a3, .LCPI1_0
38 # CHECK-INST: .literal .Ltmp0, 30000
39 # CHECK-INST: l32r a4, .Ltmp0
40 # CHECK-INST: movi a5, 1000