blob: 214b5ec59f6adc36d66cbfafffbb732e496d08ca [file] [log] [blame]
JF Bastienc8698872014-03-10 15:54:49 +00001; RUN: llvm-link %s %S/Inputs/targettriple-a.ll -S -o - 2>%t.a.err | FileCheck %s
Akira Hatanakaf3fae652015-02-13 16:00:03 +00002; RUN: cat %t.a.err | FileCheck --check-prefix=WARN-A %s --allow-empty
JF Bastienc8698872014-03-10 15:54:49 +00003
4; RUN: llvm-link %s %S/Inputs/targettriple-b.ll -S -o - 2>%t.b.err | FileCheck %s
5; RUN: cat %t.b.err | FileCheck --check-prefix=WARN-B %s
Akira Hatanakaf3fae652015-02-13 16:00:03 +00006; RUN: llvm-link %s %S/Inputs/targettriple-c.ll -S -o - 2>%t.c.err | FileCheck %s
7; RUN: cat %t.c.err | FileCheck --check-prefix=WARN-C %s --allow-empty
JF Bastienc8698872014-03-10 15:54:49 +00008
Rafael Espindolab31d53a2014-10-25 01:14:15 +00009; RUN: llvm-link -suppress-warnings %s %S/Inputs/targettriple-b.ll -S -o - 2>%t.no-warn.err | FileCheck %s
Akira Hatanakaf3fae652015-02-13 16:00:03 +000010; RUN: cat %t.no-warn.err | FileCheck --check-prefix=WARN-A %s --allow-empty
Rafael Espindolab31d53a2014-10-25 01:14:15 +000011
Akira Hatanakaac844bf2015-02-13 00:40:41 +000012target triple = "x86_64-unknown-linux-gnu"
JF Bastienc8698872014-03-10 15:54:49 +000013
Akira Hatanakaac844bf2015-02-13 00:40:41 +000014; CHECK: target triple = "x86_64-unknown-linux-gnu"
JF Bastienc8698872014-03-10 15:54:49 +000015
Jonas Devlieghere22942f72018-04-18 14:41:47 +000016; WARN-A-NOT: warning
JF Bastienc8698872014-03-10 15:54:49 +000017
Akira Hatanakaac844bf2015-02-13 00:40:41 +000018; i386 and x86_64 map to different ArchType enums.
Jonas Devlieghere22942f72018-04-18 14:41:47 +000019; WARN-B: warning: Linking two modules of different target triples:
Akira Hatanakaac844bf2015-02-13 00:40:41 +000020
21; x86_64h and x86_64 map to the same ArchType enum.
Jonas Devlieghere22942f72018-04-18 14:41:47 +000022; WARN-C-NOT: warning