diff options
Diffstat (limited to 'test/CodeGen/SystemZ/insert-06.ll')
-rw-r--r-- | test/CodeGen/SystemZ/insert-06.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/SystemZ/insert-06.ll b/test/CodeGen/SystemZ/insert-06.ll index edcd0c5dcc..81a9c87707 100644 --- a/test/CodeGen/SystemZ/insert-06.ll +++ b/test/CodeGen/SystemZ/insert-06.ll @@ -178,3 +178,17 @@ define i64 @f14(i64 %a, i64 %b) { %ext = sext i1 %res to i64 ret i64 %ext } + +; Check another representation of f8. +define i64 @f15(i64 %a, i8 *%src) { +; CHECK-LABEL: f15: +; CHECK-NOT: {{%r[23]}} +; CHECK: lb %r2, 0(%r3) +; CHECK: br %r14 + %byte = load i8 *%src + %b = sext i8 %byte to i64 + %low = and i64 %b, 4294967295 + %high = and i64 %a, -4294967296 + %res = or i64 %high, %low + ret i64 %res +} |