mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-03 00:16:05 +00:00

This patch updates test files after D105169. Autogenerated test codes are changed by `utils/update_cc_test_checks.py,` and non-autogenerated test codes are changed as follows: (1) I wrote a python script that (partially) updates the tests using regex: {F18594904} The script is not perfect, but I believe it gives hints about which patterns are updated to have `noundef` attached. (2) The remaining tests are updated manually. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D108453
16 lines
670 B
C++
16 lines
670 B
C++
// RUN: %clang_cc1 -triple arm64-linux-gnu -emit-llvm -o - %s | FileCheck %s
|
|
// RUN: %clang_cc1 -triple arm64-linux-gnu -emit-llvm -o - %s -target-abi darwinpcs | FileCheck %s --check-prefix=CHECK-DARWIN
|
|
|
|
void test_extensions(bool a, char b, short c) {}
|
|
// CHECK: define{{.*}} void @_Z15test_extensionsbcs(i1 noundef %a, i8 noundef %b, i16 noundef %c)
|
|
// CHECK-DARWIN: define{{.*}} void @_Z15test_extensionsbcs(i1 noundef zeroext %a, i8 noundef signext %b, i16 noundef signext %c)
|
|
|
|
struct Empty {};
|
|
void test_empty(Empty e) {}
|
|
// CHECK: define{{.*}} void @_Z10test_empty5Empty(i8
|
|
// CHECK-DARWIN: define{{.*}} void @_Z10test_empty5Empty()
|
|
|
|
struct HFA {
|
|
float a[3];
|
|
};
|