Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git] / llvm / test / CodeGen / Thumb / cortex-m0-unaligned-access.ll
blob9ac0e478babeb79a40d09eb599f7d2f0bee4cb4c
1 ; RUN: llc -mtriple=thumbv6m-apple-unknown-macho -mattr=+strict-align < %s | FileCheck --check-prefix=V6M %s
2 ; RUN: llc -mtriple=thumbv7m-apple-unknown-macho < %s | FileCheck --check-prefix=V7M %s
4 define i32 @split_load(ptr %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, ptr %p, align 2
12   ret i32 %val