X86: Make sure that we have SSE4.1 before we generate insertps nodes.
[oota-llvm.git] / test / CodeGen / ARM64 / register-offset-addressing.ll
1 ; RUN: llc < %s -mtriple=arm64-apple-darwin | FileCheck %s
2
3 define i8 @t1(i16* %a, i64 %b) {
4 ; CHECK: t1
5 ; CHECK: lsl [[REG:x[0-9]+]], x1, #1
6 ; CHECK: ldrb w0, [x0, [[REG]]]
7 ; CHECK: ret
8   %tmp1 = getelementptr inbounds i16* %a, i64 %b
9   %tmp2 = load i16* %tmp1
10   %tmp3 = trunc i16 %tmp2 to i8
11   ret i8 %tmp3
12 }