Clang Project

clang_source_code/test/CodeGen/win64-i128.c
1// RUN: %clang_cc1 -triple x86_64-windows-gnu -emit-llvm -o - %s \
2// RUN:    | FileCheck %s --check-prefix=GNU64
3// RUN: %clang_cc1 -triple x86_64-windows-msvc -emit-llvm -o - %s \
4// RUN:    | FileCheck %s --check-prefix=MSC64
5
6typedef int int128_t __attribute__((mode(TI)));
7
8int128_t foo() { return 0; }
9
10// GNU64: define dso_local <2 x i64> @foo()
11// MSC64: define dso_local <2 x i64> @foo()
12
13int128_t bar(int128_t a, int128_t b) { return a * b; }
14
15// GNU64: define dso_local <2 x i64> @bar(i128*, i128*)
16// MSC64: define dso_local <2 x i64> @bar(i128*, i128*)
17