Mercurial > hg > Members > tobaru > cbc > CbC_llvm
diff test/CodeGen/AArch64/tbi.ll @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | 7d135dc70f03 |
children |
line wrap: on
line diff
--- a/test/CodeGen/AArch64/tbi.ll Fri Nov 25 19:14:25 2016 +0900 +++ b/test/CodeGen/AArch64/tbi.ll Fri Oct 27 17:07:41 2017 +0900 @@ -100,3 +100,14 @@ %load = load i32, i32* %cast ret i32 %load } + +; BOTH-LABEL:ld_and8: +; BOTH: and x +define i32 @ld_and8(i64 %base, i8 %off) { + %off_masked = and i8 %off, 63 + %off_64 = zext i8 %off_masked to i64 + %p = add i64 %base, %off_64 + %cast = inttoptr i64 %p to i32* + %load = load i32, i32* %cast + ret i32 %load +}