diff options
| author | Simon Atanasyan <simon@atanasyan.com> | 2019-11-27 19:09:50 +0300 |
|---|---|---|
| committer | Simon Atanasyan <simon@atanasyan.com> | 2019-11-29 00:23:00 +0300 |
| commit | f4d32ae75bf515f443a2c99dce5c882f460c82bd (patch) | |
| tree | ffc43fd73637e320bd7a8e178dba01f260ef9e95 /clang/test/CodeGen/builtins-mips.c | |
| parent | ec3efcf11ff2fcdb5a754e3bda942dd5bef0928e (diff) | |
| download | bcm5719-llvm-f4d32ae75bf515f443a2c99dce5c882f460c82bd.tar.gz bcm5719-llvm-f4d32ae75bf515f443a2c99dce5c882f460c82bd.zip | |
[mips] Check that features required by built-ins are enabled
Now Clang does not check that features required by built-in functions
are enabled. That causes errors in the backend reported in PR44018.
This patch fixes this bug by checking that required features
are enabled.
This should fix PR44018.
Differential Revision: https://reviews.llvm.org/D70808
Diffstat (limited to 'clang/test/CodeGen/builtins-mips.c')
| -rw-r--r-- | clang/test/CodeGen/builtins-mips.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/CodeGen/builtins-mips.c b/clang/test/CodeGen/builtins-mips.c index c6be896e819..d26f630c35d 100644 --- a/clang/test/CodeGen/builtins-mips.c +++ b/clang/test/CodeGen/builtins-mips.c @@ -1,5 +1,6 @@ // REQUIRES: mips-registered-target -// RUN: %clang_cc1 -triple mips-unknown-linux-gnu -emit-llvm %s -o - \ +// RUN: %clang_cc1 -triple mips-unknown-linux-gnu -emit-llvm %s \ +// RUN: -target-feature +dspr2 -o - \ // RUN: | FileCheck %s typedef int q31; |

