Mercurial > hg > CbC > CbC_llvm
view test/CodeGen/Thumb/cortex-m0-unaligned-access.ll @ 134:3a76565eade5 LLVM5.0.1
update 5.0.1
author | mir3636 |
---|---|
date | Sat, 17 Feb 2018 09:57:20 +0900 |
parents | afa8332a0e37 |
children |
line wrap: on
line source
; RUN: llc -mtriple=thumbv6m-apple-unknown-macho -mattr=+strict-align < %s | FileCheck --check-prefix=V6M %s ; RUN: llc -mtriple=thumbv7m-apple-unknown-macho < %s | FileCheck --check-prefix=V7M %s define i32 @split_load(i32* %p) nounwind { ; V6M-LABEL: split_load ; V6M: ldrh ; V6M: ldrh ; V7M-LABEL: split_load ; V7M-NOT: ldrh ; V7M: bx lr %val = load i32, i32* %p, align 2 ret i32 %val }