|  | 
| 4 | 4 | ; RUN: llvm-as %p/Inputs/libdevice-cuda-9.ll -o %t/libdevice.compute_35.10.bc | 
| 5 | 5 | ; RUN: llvm-as %p/Inputs/libdevice-cuda-10.ll -o %t/libdevice.10.bc | 
| 6 | 6 | ; RUN: llvm-as %p/Inputs/libdevice-cuda-11.ll -o %t/libdevice.11.10.bc | 
| 7 |  | -; RUN: llvm-as %p/Inputs/libdevice-cuda-9.ll -o %t/correct-libdevice-wrong-filename.bc | 
| 8 | 7 | ; RUN: llvm-as %p/Inputs/not-a-libdevice.ll -o %t/libdevice-with-wrong-info.bc | 
|  | 8 | +; RUN: llvm-as %p/Inputs/libdevice-with-wrong-dl.ll -o %t/libdevice-with-wrong-dl.bc | 
| 9 | 9 | 
 | 
| 10 | 10 | ; No warnings expected when we link with libdevice variants | 
| 11 | 11 | ; RUN: llvm-link %t/main.bc %t/libdevice.compute_35.10.bc -S 2>&1 \ | 
|  | 
| 15 | 15 | ; RUN: llvm-link %t/main.bc %t/libdevice.11.10.bc -S 2>&1 \ | 
| 16 | 16 | ; RUN:  | FileCheck --check-prefixes COMMON,NOWARN %s | 
| 17 | 17 | 
 | 
| 18 |  | -; But make sure we still issue warnings if we see unexpected filename, or | 
| 19 |  | -; unexpected triple or datalayout within a libdevice filename. | 
| 20 |  | -; RUN: llvm-link %t/main.bc %t/correct-libdevice-wrong-filename.bc -S 2>&1 \ | 
| 21 |  | -; RUN:  | FileCheck --check-prefixes COMMON,WARN-TRIPLE %s | 
|  | 18 | +; But make sure we still issue warnings if we see unexpected triple or | 
|  | 19 | +; datalayout within a libdevice module. | 
| 22 | 20 | ; RUN: llvm-link %t/main.bc %t/libdevice-with-wrong-info.bc -S 2>&1 \ | 
| 23 | 21 | ; RUN:  | FileCheck --check-prefixes COMMON,WARN-TRIPLE,WARN-DL %s | 
|  | 22 | +; RUN: llvm-link %t/main.bc %t/libdevice-with-wrong-dl.bc -S 2>&1 \ | 
|  | 23 | +; RUN:  | FileCheck --check-prefixes COMMON,NOWARN,WARN-DL %s | 
| 24 | 24 | 
 | 
| 25 | 25 | 
 | 
| 26 | 26 | target triple = "nvptx64-nvidia-cuda" | 
|  | 
0 commit comments