Skip to content

Commit defb14a

Browse files
committed
Add test that we do not emit unwanted warnings.
1 parent 1bab5e2 commit defb14a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32"
2+
target triple = "native_cpu"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; Prepare bitcode files.
2+
; RUN: rm -rf %t && mkdir -p %t
3+
; RUN: llvm-as %s -o %t/main.bc
4+
; RUN: llvm-as %p/Inputs/libspirv-native_cpu.ll -o %t/libspirv-native_cpu.bc
5+
6+
; No warnings expected for linking in libspirv-native_cpu.bc.
7+
; RUN: llvm-link %t/main.bc %t/libspirv-native_cpu.bc -S 2>&1 | FileCheck %s
8+
9+
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
10+
target triple = "x86_64-unknown-linux-gnu"
11+
12+
; CHECK-NOT: warning:
13+
; CHECK: target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
14+
; CHECK: target triple = "x86_64-unknown-linux-gnu"
15+
; CHECK-NOT: warning:

0 commit comments

Comments
 (0)