Commit 9d64d8b
committed
[msan] Generalize handleIntrinsicByApplyingToShadow by adding bitcasting
handleIntrinsicByApplyingToShadow (introduced in
#114490) requires that the
intrinsic supports integer-ish operands; this is not the case for all
intrinsics. This patch generalizes the function to bitcast the shadow
arguments to be the same type as the original intrinsic, thus
guaranteeing that the intrinsic exists. Additionally, it casts the
computed shadow to be an appropriate shadow type.
This function assumes that the intrinsic will handle arbitrary bit-patterns (for example, if the intrinsic only accepts floats
for var1, we require that it doesn't care if inputs are NaNs).1 parent 8e85b77 commit 9d64d8b
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4008 | 4008 | | |
4009 | 4009 | | |
4010 | 4010 | | |
| 4011 | + | |
| 4012 | + | |
| 4013 | + | |
| 4014 | + | |
4011 | 4015 | | |
4012 | 4016 | | |
4013 | 4017 | | |
| |||
4022 | 4026 | | |
4023 | 4027 | | |
4024 | 4028 | | |
4025 | | - | |
| 4029 | + | |
| 4030 | + | |
| 4031 | + | |
| 4032 | + | |
| 4033 | + | |
4026 | 4034 | | |
4027 | 4035 | | |
4028 | 4036 | | |
| |||
4043 | 4051 | | |
4044 | 4052 | | |
4045 | 4053 | | |
4046 | | - | |
| 4054 | + | |
4047 | 4055 | | |
4048 | 4056 | | |
4049 | 4057 | | |
| |||
0 commit comments