From 0b9709a03e14e41a6ab4b551e0f339bd24d2fc03 Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Sat, 22 Sep 2018 18:25:58 +0000 Subject: [PATCH] Fix codemodels.c test case (only test mcmodel=medium on X86). aarch64 testing is broken because "medium" is not a valid code-model on aarch64, and codemodels.c tests that. This fixes that problem by adding "-triple x86_64-unknown-linux-gnu" to the test with "-mcode-model moedium". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342812 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/codemodels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CodeGen/codemodels.c b/test/CodeGen/codemodels.c index 8f94e22b10..30fdb25933 100644 --- a/test/CodeGen/codemodels.c +++ b/test/CodeGen/codemodels.c @@ -2,7 +2,7 @@ // RUN: %clang_cc1 -emit-llvm -mcode-model tiny %s -o - | FileCheck %s -check-prefix=CHECK-TINY // RUN: %clang_cc1 -emit-llvm -mcode-model small %s -o - | FileCheck %s -check-prefix=CHECK-SMALL // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -mcode-model kernel %s -o - | FileCheck %s -check-prefix=CHECK-KERNEL -// RUN: %clang_cc1 -emit-llvm -mcode-model medium %s -o - | FileCheck %s -check-prefix=CHECK-MEDIUM +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -mcode-model medium %s -o - | FileCheck %s -check-prefix=CHECK-MEDIUM // RUN: %clang_cc1 -emit-llvm -mcode-model large %s -o - | FileCheck %s -check-prefix=CHECK-LARGE // CHECK-TINY: !llvm.module.flags = !{{{.*}}} -- 2.40.0