[ARM] Add and adjust saturation tests for upcoming qadd changes. NFC
[llvm-core.git] / test / Linker / pr21374.ll
blobd777971adedb767ad7d2f7dc332e9b1f8dc486c1
1 ; RUN: llvm-link -S -o - %p/pr21374.ll %p/Inputs/pr21374.ll | FileCheck %s
2 ; RUN: llvm-link -S -o - %p/Inputs/pr21374.ll %p/pr21374.ll | FileCheck %s
4 ; RUN: llvm-as -o %t1.bc %p/pr21374.ll
5 ; RUN: llvm-as -o %t2.bc %p/Inputs/pr21374.ll
7 ; RUN: llvm-link -S -o - %t1.bc %t2.bc | FileCheck %s
8 ; RUN: llvm-link -S -o - %t2.bc %t1.bc | FileCheck %s
10 ; Test that we get the same result with or without lazy loading.
12 ; CHECK: %foo = type { i8* }
13 ; CHECK-DAG: bitcast i32* null to %foo*
14 ; CHECK-DAG: define void @g(%foo* %x)
16 %foo = type { i8* }
17 define void @f() {
18   bitcast i32* null to %foo*
19   ret void