-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CIR] Add validation tests for scalar casts #317
Conversation
Fix a couple typos in the validation failure messages for scalar casts
|
||
!u32i = !cir.int<u, 32> | ||
cir.func @cast9(%p : !u32i) { | ||
%2 = cir.cast(integral, %p : !u32i), f32 // expected-error {{requires !IntegerType for result}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you also found a bug here, this should print !cir.int
, I wonder if we are still using mlir::IntegerType
instead of cir::IntType
or if the error message is just not ideal. Let's track this on another issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix a couple typos in the validation failure messages for scalar casts
Fix a couple typos in the validation failure messages for scalar casts
Fix a couple typos in the validation failure messages for scalar casts
Fix a couple typos in the validation failure messages for scalar casts
Fix a couple typos in the validation failure messages for scalar casts
Fix a couple typos in the validation failure messages for scalar casts
Fix a couple typos in the validation failure messages for scalar casts
Fix a couple typos in the validation failure messages for scalar casts
Fix a couple typos in the validation failure messages for scalar casts
Fix a couple typos in the validation failure messages for scalar casts
Fix a couple typos in the validation failure messages for scalar casts
Fix a couple typos in the validation failure messages for scalar casts
Fix a couple typos in the validation failure messages for scalar casts
Fix a couple typos in the validation failure messages for scalar casts