File: darwin-minos-ver-3.ispc

package info (click to toggle)
ispc 1.28.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 97,620 kB
  • sloc: cpp: 77,067; python: 8,303; yacc: 3,337; lex: 1,126; ansic: 631; sh: 475; makefile: 17
file content (16 lines) | stat: -rw-r--r-- 951 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// The test checks that the triple contain minimum OS version if provided.
// Note: iOS target is enabled one ARM platforms only.

// RUN: %{ispc} %s --nostdlib --target-os=ios --arch=aarch64 --emit-llvm-text --nowrap --target=neon-i32x4 -o - | FileCheck %s --check-prefix=CHECK-IOS-DEFAULT
// RUN: %{ispc} %s --nostdlib --target-os=ios --arch=aarch64 --emit-llvm-text --nowrap --target=neon-i32x4 --darwin-version-min=15.0 -o - | FileCheck %s --check-prefix=CHECK-IOS-VER
// RUN: %{ispc} %s --nostdlib --target-os=ios --arch=aarch64 --emit-llvm-text --nowrap --target=neon-i32x4 --darwin-version-min="" -o - | FileCheck %s --check-prefix=CHECK-IOS-VER-UNSET

// REQUIRES: MACOS_HOST && MACOS_ARM_ENABLED && MACOS_IOS_ENABLED

// CHECK-IOS-DEFAULT: target triple = "arm64-apple-ios11.0"
// CHECK-IOS-VER: target triple = "arm64-apple-ios15.0"
// CHECK-IOS-VER-UNSET: target triple = "arm64-apple-ios"

uniform int j;

int foo(int i) { return i + 1; }