llvm.org GIT mirror llvm / 2021bac
[SLP] Update tests checks, NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321869 91177308-0d34-0410-b5e6-96231b3b80d8 Alexey Bataev 1 year, 9 months ago
2 changed file(s) with 18 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
0 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
1 ; RUN: opt -S -mtriple=powerpc64-linux-gnu -mcpu=pwr9 -mattr=+vsx -slp-vectorizer < %s | FileCheck %s
12
23 %struct.S = type { i8*, i8* }
45 @kS0 = common global %struct.S zeroinitializer, align 8
56
67 define { i64, i64 } @getS() {
8 ; CHECK-LABEL: @getS(
9 ; CHECK-NEXT: entry:
10 ; CHECK-NEXT: [[TMP0:%.*]] = load i64, i64* bitcast (%struct.S* @kS0 to i64*), align 8
11 ; CHECK-NEXT: [[TMP1:%.*]] = load i64, i64* bitcast (i8** getelementptr inbounds (%struct.S, %struct.S* @kS0, i64 0, i32 1) to i64*), align 8
12 ; CHECK-NEXT: [[TMP2:%.*]] = insertvalue { i64, i64 } undef, i64 [[TMP0]], 0
13 ; CHECK-NEXT: [[TMP3:%.*]] = insertvalue { i64, i64 } [[TMP2]], i64 [[TMP1]], 1
14 ; CHECK-NEXT: ret { i64, i64 } [[TMP3]]
15 ;
716 entry:
817 %0 = load i64, i64* bitcast (%struct.S* @kS0 to i64*), align 8
918 %1 = load i64, i64* bitcast (i8** getelementptr inbounds (%struct.S, %struct.S* @kS0, i64 0, i32 1) to i64*), align 8
1221 ret { i64, i64 } %3
1322 }
1423
15 ; CHECK: load i64
16 ; CHECK-NOT: load <2 x i64>
17 ; CHECK-NOT: extractelement
18
0 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
1 ; RUN: opt -S -mtriple=x86_64-unknown-linux -mcpu=corei7 -slp-vectorizer < %s | FileCheck %s
12
23 %struct.S = type { i8*, i8* }
45 @kS0 = common global %struct.S zeroinitializer, align 8
56
67 define { i64, i64 } @getS() {
8 ; CHECK-LABEL: @getS(
9 ; CHECK-NEXT: entry:
10 ; CHECK-NEXT: [[TMP0:%.*]] = load i64, i64* bitcast (%struct.S* @kS0 to i64*), align 8
11 ; CHECK-NEXT: [[TMP1:%.*]] = load i64, i64* bitcast (i8** getelementptr inbounds (%struct.S, %struct.S* @kS0, i64 0, i32 1) to i64*), align 8
12 ; CHECK-NEXT: [[TMP2:%.*]] = insertvalue { i64, i64 } undef, i64 [[TMP0]], 0
13 ; CHECK-NEXT: [[TMP3:%.*]] = insertvalue { i64, i64 } [[TMP2]], i64 [[TMP1]], 1
14 ; CHECK-NEXT: ret { i64, i64 } [[TMP3]]
15 ;
716 entry:
817 %0 = load i64, i64* bitcast (%struct.S* @kS0 to i64*), align 8
918 %1 = load i64, i64* bitcast (i8** getelementptr inbounds (%struct.S, %struct.S* @kS0, i64 0, i32 1) to i64*), align 8
1120 %3 = insertvalue { i64, i64 } %2, i64 %1, 1
1221 ret { i64, i64 } %3
1322 }
14
15 ; CHECK: load i64
16 ; CHECK-NOT: load <2 x i64>
17 ; CHECK-NOT: extractelement
18