1# RUN: llvm-mc -triple=xtensa -filetype obj -o - %s \ 2# RUN: | llvm-readobj -S --sd - \ 3# RUN: | FileCheck -check-prefix=CHECK-LITERAL %s 4 5# RUN: llvm-mc %s -triple=xtensa -show-encoding \ 6# RUN: | FileCheck -check-prefix=CHECK-INST %s 7 8 .text 9 .literal_position 10 .literal .LCPI0_0, 305419896 11 .literal .LCPI1_0, ext_var 12 .global test_literal 13 .p2align 2 14 .type test_literal,@function 15test_literal: 16 l32r a2, .LCPI0_0 17 l32r a3, .LCPI1_0 18 movi a4, 30000 19 movi a5, 1000 20 ret 21 22# CHECK-LITERAL: Section { 23# CHECK-LITERAL: Name: .literal 24# CHECK-LITERAL: SectionData ( 25# CHECK-LITERAL: 0000: 78563412 00000000 30750000 26# CHECK-LITERAL: ) 27# CHECK-LITERAL: } 28 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 41# CHECK-INST: ret 42 43