test: Move unicode e2e test to tint dir

This got left out of the large reshuffle of dbc13af2

Bug: tint:1418
Change-Id: I0e55e19cdb8e3931ab87a99bce0e16b0cf5d5bff
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/81320
Auto-Submit: Ben Clayton <bclayton@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton
2022-02-21 16:51:06 +00:00
committed by Tint LUCI CQ
parent dbc13af287
commit aa58a6934c
12 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
// Øⓑꚫ쁹Ǵ𐌒岾🥍ⴵ㍨又ᮗ
/*
/* 👋🌎 */
नमस्ते दुनिया
*/
@stage(fragment)
fn /* こんにちは世界 */ main( /* 你好世界 */ ) {
// 안녕하세요 세계
}

View File

@@ -0,0 +1,10 @@
#version 310 es
precision mediump float;
void tint_symbol() {
}
void main() {
tint_symbol();
return;
}

View File

@@ -0,0 +1,3 @@
void main() {
return;
}

View File

@@ -0,0 +1,7 @@
#include <metal_stdlib>
using namespace metal;
fragment void tint_symbol() {
return;
}

View File

@@ -0,0 +1,16 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 5
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main"
OpExecutionMode %main OriginUpperLeft
OpName %main "main"
%void = OpTypeVoid
%1 = OpTypeFunction %void
%main = OpFunction %void None %1
%4 = OpLabel
OpReturn
OpFunctionEnd

View File

@@ -0,0 +1,3 @@
@stage(fragment)
fn main() {
}

View File

@@ -0,0 +1,12 @@
type 𝓉𝓎𝓅_𝒶 = i32;
type 𝐭𝐲𝐩𝐞_𝐛 = f32;
fn 𝓯𝓾𝓷𝓬𝓽𝓲𝓸𝓷(ᵖᵃʳᵃᵐ : 𝓉𝓎𝓅_𝒶) -> 𝐭𝐲𝐩𝐞_𝐛 {
return 𝐭𝐲𝐩𝐞_𝐛(ᵖᵃʳᵃᵐ);
}
@stage(fragment)
fn 𝕖𝕟𝕥𝕣𝕪𝕡𝕠𝕚𝕟𝕥() {
var 𝙫𝙖𝙧𝙞𝙖𝙗𝙡𝙚 : 𝓉𝓎𝓅_𝒶;
let 𝖗𝖊𝖘𝖚𝖑𝖙 = 𝓯𝓾𝓷𝓬𝓽𝓲𝓸𝓷(𝙫𝙖𝙧𝙞𝙖𝙗𝙡𝙚);
}

View File

@@ -0,0 +1,16 @@
#version 310 es
precision mediump float;
float tint_symbol_2(int tint_symbol_3) {
return float(tint_symbol_3);
}
void tint_symbol_4() {
int tint_symbol_5 = 0;
float tint_symbol_6 = tint_symbol_2(tint_symbol_5);
}
void main() {
tint_symbol_4();
return;
}

View File

@@ -0,0 +1,9 @@
float tint_symbol_2(int tint_symbol_3) {
return float(tint_symbol_3);
}
void tint_symbol_4() {
int tint_symbol_5 = 0;
const float tint_symbol_6 = tint_symbol_2(tint_symbol_5);
return;
}

View File

@@ -0,0 +1,13 @@
#include <metal_stdlib>
using namespace metal;
float tint_symbol_2(int tint_symbol_3) {
return float(tint_symbol_3);
}
fragment void tint_symbol_4() {
int tint_symbol_5 = 0;
float const tint_symbol_6 = tint_symbol_2(tint_symbol_5);
return;
}

View File

@@ -0,0 +1,33 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 17
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %________________________________________ "𝕖𝕟𝕥𝕣𝕪𝕡𝕠𝕚𝕟𝕥"
OpExecutionMode %________________________________________ OriginUpperLeft
OpName %________________________________ "𝓯𝓾𝓷𝓬𝓽𝓲𝓸𝓷"
OpName %______________ "ᵖᵃʳᵃᵐ"
OpName %________________________________________ "𝕖𝕟𝕥𝕣𝕪𝕡𝕠𝕚𝕟𝕥"
OpName %_________________________________0 "𝙫𝙖𝙧𝙞𝙖𝙗𝙡𝙚"
%float = OpTypeFloat 32
%int = OpTypeInt 32 1
%1 = OpTypeFunction %float %int
%void = OpTypeVoid
%8 = OpTypeFunction %void
%_ptr_Function_int = OpTypePointer Function %int
%14 = OpConstantNull %int
%________________________________ = OpFunction %float None %1
%______________ = OpFunctionParameter %int
%6 = OpLabel
%7 = OpConvertSToF %float %______________
OpReturnValue %7
OpFunctionEnd
%________________________________________ = OpFunction %void None %8
%11 = OpLabel
%_________________________________0 = OpVariable %_ptr_Function_int Function %14
%16 = OpLoad %int %_________________________________0
%15 = OpFunctionCall %float %________________________________ %16
OpReturn
OpFunctionEnd

View File

@@ -0,0 +1,13 @@
type 𝓉𝓎𝓅_𝒶 = i32;
type 𝐭𝐲𝐩𝐞_𝐛 = f32;
fn 𝓯𝓾𝓷𝓬𝓽𝓲𝓸𝓷(ᵖᵃʳᵃᵐ : 𝓉𝓎𝓅_𝒶) -> 𝐭𝐲𝐩𝐞_𝐛 {
return 𝐭𝐲𝐩𝐞_𝐛(ᵖᵃʳᵃᵐ);
}
@stage(fragment)
fn 𝕖𝕟𝕥𝕣𝕪𝕡𝕠𝕚𝕟𝕥() {
var 𝙫𝙖𝙧𝙞𝙖𝙗𝙡𝙚 : 𝓉𝓎𝓅_𝒶;
let 𝖗𝖊𝖘𝖚𝖑𝖙 = 𝓯𝓾𝓷𝓬𝓽𝓲𝓸𝓷(𝙫𝙖𝙧𝙞𝙖𝙗𝙡𝙚);
}