Home | History | Annotate | Download | only in Thumb
      1 ; RUN: llc -mtriple=thumbv6m-apple-unknown-macho < %s | FileCheck --check-prefix=V6M %s
      2 ; RUN: llc -mtriple=thumbv7m-apple-unknown-macho < %s | FileCheck --check-prefix=V7M %s
      3 
      4 define i32 @split_load(i32* %p) nounwind {
      5 ; V6M-LABEL: split_load
      6 ; V6M: ldrh
      7 ; V6M: ldrh
      8 ; V7M-LABEL: split_load
      9 ; V7M-NOT: ldrh
     10 ; V7M: bx lr
     11   %val = load i32, i32* %p, align 2
     12   ret i32 %val
     13 }
     14