Home | History | Annotate | Download | only in Linker
      1 ; This test checks that proper directives to switch between ARM and Thumb mode
      2 ; are added when linking ARM and Thumb modules.
      3 
      4 ; RUN: llvm-as %s -o %t1.bc
      5 ; RUN: llvm-as %p/Inputs/thumb-module-inline-asm.ll -o %t2.bc
      6 ; RUN: llvm-link %t1.bc %t2.bc -S 2> %t3.out | FileCheck %s
      7 
      8 target triple = "armv7-linux-gnueabihf"
      9 
     10 module asm "add r1, r2, r2"
     11 
     12 ; CHECK: .text
     13 ; CHECK-NEXT: .balign 4
     14 ; CHECK-NEXT: .arm
     15 ; CHECK-NEXT: add r1, r2, r2
     16 ; CHECK-NEXT: module asm
     17 ; CHECK-NEXT: .text
     18 ; CHECK-NEXT: .balign 2
     19 ; CHECK-NEXT: .thumb
     20 ; CHECK-NEXT: orn r1, r2, r2
     21