1 // RUN: %clang_cc1 -triple powerpc64le-unknown-unknown -std=c++11 -fopenmp -fexceptions -fcxx-exceptions -O0 -emit-llvm %s -o - | FileCheck %s
3 // Check that regions that install a terminate scope in the exception stack can
4 // correctly generate complex arithmetic.
6 // CHECK-LABEL: ffcomplex
7 void ffcomplex (int a
) {
8 double _Complex dc
= (double)a
;
10 // CHECK: call noundef { double, double } @__muldc3(double noundef %{{.+}}, double noundef %{{.+}}, double noundef %{{.+}}, double noundef %{{.+}})
12 // CHECK: call {{.+}} @__kmpc_fork_call({{.+}} [[REGNAME1:@.*]] to void (i32*, i32*, ...)*), { double, double }* %{{.+}})
20 // CHECK: define internal {{.+}}[[REGNAME1]](
22 // CHECK: call noundef { double, double } @__muldc3(double noundef %{{.+}}, double noundef %{{.+}}, double noundef %{{.+}}, double noundef %{{.+}})
26 // Check if we are observing the function pointer attribute regardless what is
27 // in the exception specification of the callees.
28 void fnoexcp(void) noexcept
;
31 void foo(int a
, int b
) {
33 void (*fptr
)(void) noexcept
= fnoexcp
;
35 // CHECK: call {{.+}} @__kmpc_fork_call({{.+}} [[REGNAME2:@.*]] to void (i32*, i32*, ...)*), void ()** %{{.+}})
43 // CHECK: define internal {{.+}}[[REGNAME2]](
45 // CHECK: call void %{{[0-9]+}}()