mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 15:38:48 +00:00
Update IR's helper functions
This commit is contained in:
7
examples/shift.c
Normal file
7
examples/shift.c
Normal file
@@ -0,0 +1,7 @@
|
||||
int main() {
|
||||
char a = -1;
|
||||
char b = a << 1;
|
||||
unsigned char c = (unsigned char)b >> 1;
|
||||
|
||||
return b == -2 && c == 0x7F;
|
||||
}
|
||||
Reference in New Issue
Block a user