ConstantFoldInstOperands doesn't like compares, hand it off to instsimplify instead.
[oota-llvm.git] / test / MC / ELF / elf-thumbfunc.s
1 @@ test st_value bit 0 of thumb function
2 @ RUN: llvm-mc %s -triple=thumbv7-linux-gnueabi -filetype=obj -o - | \
3 @ RUN: elf-dump  | FileCheck %s
4         .syntax unified
5         .text
6         .globl  foo
7         .align  2
8         .type   foo,%function
9         .code   16
10         .thumb_func
11 foo:
12         bx      lr
13
14 @@ make sure foo is thumb function: bit 0 = 1 (st_value)
15 @CHECK:           Symbol 0x00000004
16 @CHECK-NEXT:      'st_name', 0x00000001
17 @CHECK-NEXT:      'st_value', 0x00000001
18 @CHECK-NEXT:      'st_size', 0x00000000
19 @CHECK-NEXT:      'st_bind', 0x00000001
20 @CHECK-NEXT:      'st_type', 0x00000002