comparison llvm/test/Transforms/CodeGenPrepare/X86/multi-extension.ll @ 252:1f2b6ac9f198 llvm-original

LLVM16-1
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 18 Aug 2023 09:04:13 +0900
parents 1d019706d866
children
comparison
equal deleted inserted replaced
237:c80f45b162ad 252:1f2b6ac9f198
12 12
13 ; CHECK: %promoted = trunc i32 %or to i16 13 ; CHECK: %promoted = trunc i32 %or to i16
14 ; CHECK-NEXT: %c = sext i16 %promoted to i64 14 ; CHECK-NEXT: %c = sext i16 %promoted to i64
15 define i32 @foo(i16 %kkk) { 15 define i32 @foo(i16 %kkk) {
16 entry: 16 entry:
17 %t4 = load i16, i16* @b, align 2 17 %t4 = load i16, ptr @b, align 2
18 %conv4 = zext i16 %t4 to i32 18 %conv4 = zext i16 %t4 to i32
19 %or = or i16 %kkk, %t4 19 %or = or i16 %kkk, %t4
20 %c = sext i16 %or to i64 20 %c = sext i16 %or to i64
21 call void @bar(i64 %c) 21 call void @bar(i64 %c)
22 %t5 = and i16 %or, 5 22 %t5 = and i16 %or, 5