dawn-cmake/test/expressions/bitcast/scalar/i32min-u32.wgsl.expected.msl
Antonio Maiorano 9bdf2dcc6b MSL: fix i32 INT_MIN literal emitted as long instead of int
Bug: tint:124
Change-Id: Ie632b78cd67948b65e823f0a3c52fda7ef7343f3
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60440
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: David Neto <dneto@google.com>
2021-07-30 18:56:26 +00:00

9 lines
130 B
Plaintext

#include <metal_stdlib>
using namespace metal;
kernel void f() {
uint const b = as_type<uint>((-2147483647 - 1));
return;
}