32 lines · plain
1@ RUN: llvm-mc -triple=armv7-darwin- -show-encoding < %s | FileCheck %s2.syntax unified3 4.text5 6.arm7@ Ensure the plain form switches mode.8.thumb_func9@ CHECK: .code 1610@ CHECK-LABEL: foo11foo:12 bx lr13 14.arm15@ Ensure the labeled form doesn't switch mode.16.thumb_func bar17@ CHECK-NOT: .code 1618@ CHECK-LABEL: bar19bar:20 bx lr21 22.arm23@ Ensure the nop is assembled in thumb mode, even though the baz symbol is24@ defined later.25.thumb_func26nop27@ CHECK: .code 1628@ CHECK-NEXT: nop29@ CHECK-LABEL: baz30baz:31 bx lr32