Author: ctice Date: Sat Sep 22 11:25:58 2018 New Revision: 342812 URL: http://llvm.org/viewvc/llvm-project?rev=342812&view=rev Log: 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". Modified: cfe/trunk/test/CodeGen/codemodels.c Modified: cfe/trunk/test/CodeGen/codemodels.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/codemodels.c?rev=342812&r1=342811&r2=342812&view=diff ============================================================================== --- cfe/trunk/test/CodeGen/codemodels.c (original) +++ cfe/trunk/test/CodeGen/codemodels.c Sat Sep 22 11:25:58 2018 @@ -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 = !{{{.*}}} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits